Skip to content

Commit

Permalink
Use correct env var for go wrapper (#283)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshklop authored Oct 29, 2024
1 parent db3add8 commit 2025f04
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/go-wrapper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ set -e
# Because we transitively depend on github.com/fjl/memsize, we need to disable checklinkname in go1.23.0 and higher.
goVersion=$(go env GOVERSION)
if [[ $goVersion > go1.23.0 || $goVersion == go1.23.0 ]]; then
LDFLAGS+=' -checklinkname=0 '
GOFLAGS+=' -ldflags=-checklinkname=0 '
fi

export LDFLAGS
export GOFLAGS
go "$@"

0 comments on commit 2025f04

Please sign in to comment.