Skip to content

Commit

Permalink
correct issue with versions being set
Browse files Browse the repository at this point in the history
  • Loading branch information
mallardduck committed Oct 10, 2024
1 parent cff4906 commit 6c96aca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/build
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ if [ "$(uname)" = "Linux" ]; then
OTHER_LINKFLAGS="-extldflags -static -s"
fi

LINKFLAGS="-X github.com/rancher/${BUILD_TARGET}/pkg/version.Version=$VERSION"
LINKFLAGS="-X github.com/rancher/${BUILD_TARGET}/pkg/version.GitCommit=$COMMIT $LINKFLAGS"
LINKFLAGS="-X github.com/rancher/prometheus-federator/pkg/version.Version=$VERSION"
LINKFLAGS="-X github.com/rancher/prometheus-federator/pkg/version.GitCommit=$COMMIT $LINKFLAGS"
BIN_DEST="build/bin/${BUILD_TARGET}"

ARCHES=( "$ARCH" )
Expand Down

0 comments on commit 6c96aca

Please sign in to comment.