akash-network / cosmos-omnibus

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUILD ERROR] note: module requires Go 1.19

moonshine-cc opened this issue · comments

I'm trying to build an image for a new chain (qwoyn) but the build fails due to note: module requires Go 1.19. Any idea how to resolve this?

#17 [build 1/3] RUN make install
#17 67.32 # github.com/cosmos/cosmos-sdk/types
#17 67.32 /go/pkg/mod/github.com/cosmos/cosmos-sdk@v0.47.3/types/address.go:88:26: undefined: atomic.Bool
#17 67.32 note: module requires Go 1.19
#17 103.3 make: *** [Makefile:83: install] Error 2
#17 ERROR: process "/bin/sh -c $BUILD_CMD" did not complete successfully: exit code: 2
------
 > [build 1/3] RUN make install:
27.03 go: downloading github.com/googleapis/gax-go/v2 v2.7.0
27.16 go: downloading go.opencensus.io v0.24.0
27.36 go: downloading golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2
27.40 go: downloading github.com/jmespath/go-jmespath v0.4.0
27.41 go: downloading github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da
27.48 go: downloading github.com/googleapis/enterprise-certificate-proxy v0.2.3
67.32 # github.com/cosmos/cosmos-sdk/types
67.32 /go/pkg/mod/github.com/cosmos/cosmos-sdk@v0.47.3/types/address.go:88:26: undefined: atomic.Bool
67.32 note: module requires Go 1.19
103.3 make: *** [Makefile:83: install] Error 2
------
WARNING: No output specified for node_1 target(s) with docker-container driver. Build result will only remain in the build cache. To push result image into registry use --push or to load image into docker use --load
Dockerfile:70
--------------------
  68 |     
  69 |     ARG BUILD_PATH=$GOPATH/bin
  70 | >>> RUN $BUILD_CMD
  71 |     
  72 |     RUN ldd $BUILD_PATH/$PROJECT_BIN | tr -s '[:blank:]' '\n' | grep '^/' | \
--------------------
ERROR: failed to solve: process "/bin/sh -c $BUILD_CMD" did not complete successfully: exit code: 2
Error: Process completed with exit code 1.

There's a build.yml argument you can set; GOLANG_VERSION. Should be GOLANG_VERSION=1.19-buster in this case, the default is 1.18-buster. See e.g. juno/build.yml.