Skip to content

Commit

Permalink
Merge branch 'dev' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
eyalbe4 committed Jan 30, 2022
2 parents 02a7e36 + dab0824 commit 1fab275
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions release/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ build () {
exeName="$4"
echo "Building $exeName for $GOOS-$GOARCH ..."

CGO_ENABLED=0 jf go build -o "$exeName" -ldflags '-w -extldflags "-static" -X main.cliVersion='$version main.go
CGO_ENABLED=0 jf go build -o "$exeName" -ldflags '-w -extldflags "-static" -X main.cliVersion='${version:1} main.go
chmod +x $exeName

# Run verification after building plugin for the correct platform of this image.
Expand Down Expand Up @@ -42,7 +42,6 @@ copyToLatestDir () {
# Verify version provided in pipelines UI matches version in build-info-go source code.
verifyVersionMatching () {
echo "Verifying provided version matches built version..."
jf go build -o bi
res=$(eval "./bi -v")
exitCode=$?
if [[ $exitCode -ne 0 ]]; then
Expand Down

0 comments on commit 1fab275

Please sign in to comment.