Skip to content

Commit

Permalink
modify go version for chihuahua
Browse files Browse the repository at this point in the history
  • Loading branch information
gregnuj committed Jan 5, 2024
1 parent f6cf4e4 commit 7b814e7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/chihuahua-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
binary: "chihuahuad"
build_command: "make install"
chain_registry_name: "chihuahua"
go_version: "1.21"
go_version: "1.20.10"
repo: "ChihuahuaChain/chihuahua"
os: "linux"
arch: "amd64"
Expand Down
14 changes: 7 additions & 7 deletions alpine.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@ SHELL [ "/bin/bash", "-c" ]

RUN set -e && \
git clone -b ${GIT_TAG} https://github.com/${GIT_REPO}.git ./ && \
export GO_MOD_VERSION="$(awk '/^go /{print $2}' go.mod)" && \
if [[ "${GO_VERSION}" != "${GO_MOD_VERSION}"* ]]; then \
/bin/bash < <(curl -sSL https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer) && \
source ${HOME}/.gvm/scripts/gvm && \
gvm install go${GO_MOD_VERSION} && \
gvm use go${GO_MOD_VERSION}; \
fi && \
# export GO_MOD_VERSION="$(awk '/^go /{print $2}' go.mod)" && \
# if [[ "${GO_VERSION}" != "${GO_MOD_VERSION}"* ]]; then \
# /bin/bash < <(curl -sSL https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer) && \
# source ${HOME}/.gvm/scripts/gvm && \
# gvm install go${GO_MOD_VERSION} && \
# gvm use go${GO_MOD_VERSION}; \
# fi && \
go mod download -x || true

# download wasmvm if version is specified
Expand Down

0 comments on commit 7b814e7

Please sign in to comment.