Skip to content

Commit 0c8bd1e

Browse files
authored
Avoid CGO when building. (#126)
This prevents problems when running migration-verifier on older OSes like Amazon Linux 2 (that remain in use).
1 parent 9162f5d commit 0c8bd1e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

build.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ buildTime=$(date -u)
66
goos=$(go env GOOS)
77
goarch=$(go env GOARCH)
88

9+
export CGO_ENABLED=0
10+
911
printf 'Building migration-verifier for %s/%s …\n' "$goos" "$goarch"
1012
printf '\tRevision: %s\n' "$revision"
1113
printf '\tBuild Time: %s\n' "$buildTime"

0 commit comments

Comments
 (0)