Skip to content

Commit

Permalink
fix: repair broken linux-static build (#902)
Browse files Browse the repository at this point in the history
The issue here is that the repository is owned by the user who
runs the command and the container runs as root.

Part of ooni/probe#2130
  • Loading branch information
bassosimone authored Aug 29, 2022
1 parent 4ce414d commit ffc2527
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CLI/go-build-alpine
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ set -euxo pipefail
apk update
apk upgrade
apk add --no-progress gcc git linux-headers musl-dev
# some of the following exports are redundant but are however
# We need to force git to look into this repository owned by the
# user outside docker rather than by the user running docker
git config --global --add safe.directory $(pwd)
# Some of the following exports are redundant but are however
# useful because they provide explicit logging
export CGO_ENABLED=1
export GOARM=$GOARM
Expand Down

0 comments on commit ffc2527

Please sign in to comment.