Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add GO111MODULE=off to build.sh, use Golang 1.16 #966

Merged
Next Next commit
Add GO111MODULE=off to build.sh
timvaillancourt committed May 3, 2021

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit f74a7d9ca9c817e4d222a33cac0913442b88d9b1
3 changes: 2 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
@@ -23,10 +23,11 @@ function build {
exit 1
fi

# TODO: remove GO111MODULE once gh-ost uses Go modules
echo "Building ${osname} binary"
export GOOS
export GOARCH
go build -ldflags "$ldflags" -o $buildpath/$target go/cmd/gh-ost/main.go
GO111MODULE=off go build -ldflags "$ldflags" -o $buildpath/$target go/cmd/gh-ost/main.go

if [ $? -ne 0 ]; then
echo "Build failed for ${osname}"