Skip to content

Commit

Permalink
chore: test enable cgo
Browse files Browse the repository at this point in the history
  • Loading branch information
tbruyelle committed Sep 23, 2024
1 parent d7bcc46 commit 0c77f88
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ project_name: atomone

env:
- GO111MODULE=on
- CGO_ENABLED=1

builds:
- main: ./cmd/atomoned
Expand All @@ -12,8 +13,6 @@ builds:
flags:
- -tags=netgo ledger
- -trimpath
env:
- CGO_ENABLED=0
ldflags:
# .Env.TM_VERSION is provided in the workflow runner environment -> see .github/workflows/release.yml
- -X github.com/cosmos/cosmos-sdk/version.Name=atomone -X github.com/cosmos/cosmos-sdk/version.AppName=atomoned -X github.com/cosmos/cosmos-sdk/version.Version=v{{ .Version }} -X github.com/cosmos/cosmos-sdk/version.Commit={{ .Commit }} -X github.com/cosmos/cosmos-sdk/version.BuildTags=netgo,ledger -X github.com/cometbft/cometbft/version.TMCoreSemVer={{ .Env.TM_VERSION }} -w -s
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ GO_SYSTEM_VERSION = $(shell go version | cut -c 14- | cut -d' ' -f1 | cut -d'.'
REQUIRE_GO_VERSION = 1.21

export GO111MODULE = on
export CGO_ENABLED = 0
export CGO_ENABLED = 1

# process build tags

Expand Down

0 comments on commit 0c77f88

Please sign in to comment.