Skip to content

Commit

Permalink
ldflags revert
Browse files Browse the repository at this point in the history
  • Loading branch information
jribbink committed Feb 21, 2024
1 parent 4de791c commit f580dc4
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
before:
hooks:
- make generate
- export LD_FLAGS="-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 }}"

builds:
- id: darwin-amd64
Expand All @@ -16,7 +15,7 @@ builds:
flags:
- -mod=readonly
ldflags:
- {{ .Env.LD_FLAGS }}
- -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 }}

- id: darwin-arm64
main: ./cmd/flow
Expand All @@ -30,7 +29,7 @@ builds:
flags:
- -mod=readonly
ldflags:
- {{ .Env.LD_FLAGS }}
- -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 }}

- id: linux-amd64
main: ./cmd/flow
Expand All @@ -44,7 +43,7 @@ builds:
flags:
- -mod=readonly
ldflags:
- {{ .Env.LD_FLAGS }}
- -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 }}

- id: linux-arm64
main: ./cmd/flow
Expand All @@ -58,7 +57,7 @@ builds:
flags:
- -mod=readonly
ldflags:
- {{ .Env.LD_FLAGS }}
- -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
Expand Down

0 comments on commit f580dc4

Please sign in to comment.