Skip to content

Commit

Permalink
ldflags
Browse files Browse the repository at this point in the history
  • Loading branch information
jribbink committed Feb 21, 2024
1 parent f45228e commit 0c70264
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ builds:
flags:
- -mod=readonly
ldflags:
- -s -w -X main.version={{.Version}}
- -X "github.com/onflow/flow-cli/build.commit={{ .Env.COMMIT }}" -X "github.com/onflow/flow-cli/build.semver={{ .Env.VERSION }}" -X "github.com/onflow/flow-cli/internal/command.mixpanelToken={{ .Env.MIXPANEL_PROJECT_TOKEN }}" -X "github.com/onflow/flow-cli/internal/accounts.accountToken={{ .Env.LILICO_TOKEN }}"
- -X github.com/onflow/flow-cli/build.commit={{ .Env.COMMIT }} -X github.com/onflow/flow-cli/build.semver={{ .Env.VERSION }} -X github.com/onflow/flow-cli/internal/command.mixpanelToken={{ .Env.MIXPANEL_PROJECT_TOKEN }} -X github.com/onflow/flow-cli/internal/accounts.accountToken={{ .Env.LILICO_TOKEN }}
archives:
- id: golang-cross
builds:
Expand All @@ -35,7 +34,7 @@ changelog:

release:
github:
owner: goreleaser
name: golang-cross-example
owner: onflow
name: flow-cli
prerelease: auto
draft: false

0 comments on commit 0c70264

Please sign in to comment.