From d1c0de2dc5d8799eef8c6735269e5183debde435 Mon Sep 17 00:00:00 2001 From: arnabghose997 Date: Fri, 17 Mar 2023 11:29:36 +0530 Subject: [PATCH 1/2] bump golang version from go1.18 to go1.19 --- .goreleaser.yaml | 2 +- Dockerfile | 2 +- Makefile | 4 ++-- go.mod | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index e4c8d84..0ab7273 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -5,7 +5,7 @@ env: before: hooks: - - go mod tidy -compat=1.18 + - go mod tidy -compat=1.19 builds: - id: ubuntu-amd64 diff --git a/Dockerfile b/Dockerfile index 5dc51c3..8c8029d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.18 +FROM golang:1.19 # Set up dependencies ENV PACKAGES curl make git libc-dev bash gcc python3 jq diff --git a/Makefile b/Makefile index 950471b..92790d2 100644 --- a/Makefile +++ b/Makefile @@ -32,8 +32,8 @@ export GO111MODULE=on all: proto-gen swagger-docs-gen build go-version-check: -ifneq ($(GO_MINOR_VERSION),18) - @echo "ERROR: Go version 1.18 is required for this version of hid-node" +ifneq ($(GO_MINOR_VERSION),19) + @echo "ERROR: Go version 1.19 is required to build hid-noded binary" exit 1 endif diff --git a/go.mod b/go.mod index f770eaf..5282b90 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/hypersign-protocol/hid-node -go 1.18 +go 1.19 require ( github.com/cosmos/cosmos-sdk v0.45.11 From b2e4b644d2cd2d9000a0ec33d88f777a38c7c41e Mon Sep 17 00:00:00 2001 From: arnabghose997 Date: Fri, 17 Mar 2023 11:36:27 +0530 Subject: [PATCH 2/2] bump go version to go1.19 --- .github/workflows/build.yml | 2 +- .github/workflows/release.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b873ad0..31faef0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,7 +13,7 @@ jobs: - name: Set up Go 1.x uses: actions/setup-go@v3 with: - go-version: 1.18.5 + go-version: 1.19.7 id: go - name: Check out code into the Go module directory diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 97999db..10524e6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -22,7 +22,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v3 with: - go-version: 1.18 + go-version: 1.19 - name: Run GoReleaser uses: goreleaser/goreleaser-action@v2 @@ -49,7 +49,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v3 with: - go-version: 1.18 + go-version: 1.19 - name: Set up QEMU uses: docker/setup-qemu-action@v1