diff --git a/.goreleaser.yml b/.goreleaser.yml index 51d5da2d..e1af1723 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -3,6 +3,7 @@ project_name: atomone env: - GO111MODULE=on + - CGO_ENABLED=1 builds: - main: ./cmd/atomoned @@ -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 diff --git a/Makefile b/Makefile index 2873caa1..59d1e79f 100644 --- a/Makefile +++ b/Makefile @@ -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