Skip to content

Commit

Permalink
Merge pull request #677 from pastelnetwork/PSL-1006
Browse files Browse the repository at this point in the history
[PSL-1006] fix build flags
  • Loading branch information
mateeullahmalik authored Oct 6, 2023
2 parents 0ea107a + fb76573 commit 4466864
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,15 @@ commands:
export LINUX_ARTIFACT=$WORKING_DIR/<< parameters.package >>-linux-amd64
export APP_VERSION=$(git describe --tag)
if [ -z "$APP_VERSION" ]; then
APP_VERSION="latest"
fi
export APP_LDFLAGS="-X github.com/pastelnetwork/gonode/common/version.version=$APP_VERSION"
echo "APP_VERSION=$APP_VERSION"
echo "APP_LDFLAGS=$APP_LDFLAGS"
cd ~/go/src/github.com/pastelnetwork/gonode
xgo -go go-1.21.1 --targets=<< parameters.targets >> -ldflags "$APP_LDFLAGS" github.com/pastelnetwork/gonode/<< parameters.package >>
Expand Down
1 change: 1 addition & 0 deletions supernode/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ func main() {
defer errors.Recover(log.FatalAndExit)

app := cmd.NewApp()
app.HideVersion = false
err := app.Run(os.Args)

log.FatalAndExit(err)
Expand Down
1 change: 1 addition & 0 deletions walletnode/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ func main() {

//configuration in here, app.Run will actually run NewApp's runApp function.
app := cmd.NewApp()
app.HideVersion = false
err := app.Run(os.Args)

log.FatalAndExit(err)
Expand Down

0 comments on commit 4466864

Please sign in to comment.