From 0055b44387547c895a4c35a0df35c5bdee2688aa Mon Sep 17 00:00:00 2001 From: Khanh Hoa <hoa@notional.ventures> Date: Mon, 25 Mar 2024 20:54:09 +0700 Subject: [PATCH] refactor: still use go 1.21, will upgrade go 1.22 in next version --- .github/workflows/build.yml | 4 ++-- .github/workflows/codeql-cosmos.yml | 2 +- .github/workflows/codeql.yml | 2 +- .github/workflows/golangci-lint.yml | 2 +- .github/workflows/tests.yml | 2 +- Dockerfile | 2 +- go.mod | 2 +- 7 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f38d4b7e..46d68928 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -15,7 +15,7 @@ jobs: - name: Setup go uses: actions/setup-go@v5 with: - go-version: "1.22" + go-version: "1.21" - run: go build ./... tidy: @@ -26,7 +26,7 @@ jobs: - name: Setup go uses: actions/setup-go@v5 with: - go-version: "1.22" + go-version: "1.21" - run: | go mod tidy CHANGES_IN_REPO=$(git status --porcelain) diff --git a/.github/workflows/codeql-cosmos.yml b/.github/workflows/codeql-cosmos.yml index cfdef5f0..ebfd5c08 100644 --- a/.github/workflows/codeql-cosmos.yml +++ b/.github/workflows/codeql-cosmos.yml @@ -25,7 +25,7 @@ jobs: uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version: "1.22" + go-version: "1.21" # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL uses: github/codeql-action/init@v3 diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index b9a97912..084df5f6 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -25,7 +25,7 @@ jobs: uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version: "1.22" + go-version: "1.21" # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL uses: github/codeql-action/init@v3 diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index 67f06bad..c000460e 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -24,7 +24,7 @@ jobs: steps: - uses: actions/setup-go@v5 with: - go-version: "1.22" + go-version: "1.21" - uses: actions/checkout@v4 - name: golangci-lint diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 4259889f..5c7a99d0 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -14,7 +14,7 @@ jobs: - name: Install Go uses: actions/setup-go@v5 with: - go-version: "1.22" + go-version: "1.21" - name: Checkout code uses: actions/checkout@v4 - name: Test diff --git a/Dockerfile b/Dockerfile index fcd99f4b..182f9b30 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.22-alpine AS go-builder +FROM golang:1.21-alpine AS go-builder # this comes from standard alpine nightly file # https://github.com/rust-lang/docker-rust-nightly/blob/master/alpine3.12/Dockerfile diff --git a/go.mod b/go.mod index d05d2b30..9f19e8bb 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/White-Whale-Defi-Platform/migaloo-chain/v4 -go 1.22.1 +go 1.21 require ( cosmossdk.io/math v1.3.0