Skip to content

Commit

Permalink
chore: upgrade go version to latest
Browse files Browse the repository at this point in the history
  • Loading branch information
Lockwarr committed Oct 30, 2024
1 parent 01a17d6 commit ec2a469
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 95 deletions.
2 changes: 1 addition & 1 deletion .github/images/builder.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
FROM alpine:3.18

ENV PATH=/usr/local/go/bin:$PATH
COPY --from=golang:1.22 /usr/local/go /usr/local/go
COPY --from=golang:1.23 /usr/local/go /usr/local/go

ARG LEDGER_ENABLED
ENV LEDGER_ENABLED=${LEDGER_ENABLED:-false}
Expand Down
2 changes: 1 addition & 1 deletion .github/images/protogen.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ RUN npm install -g swagger-combine
RUN npm install -g swagger-merger
RUN npm install -g swagger2openapi

COPY --from=golang:1.22-alpine /usr/local/go/ /usr/local/go/
COPY --from=golang:1.23-alpine /usr/local/go/ /usr/local/go/

ENV PATH="/usr/local/go/bin:${PATH}"
10 changes: 5 additions & 5 deletions .github/workflows/nolus-core.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ env:

# docker images
CONTAINER_REGISTRY: ghcr.io
BUILDER_IMAGE_TAG: "1.22.5"
BUILDER_IMAGE_TAG: "1.23.0"
BUILDER_IMAGE_NAME: "builder"
BUILDER_DOCKERFILE: ".github/images/builder.Dockerfile"
PROTOGEN_IMAGE_TAG: "0.2.0"
Expand Down Expand Up @@ -98,7 +98,7 @@ jobs:
steps:
- uses: actions/setup-go@v5
with:
go-version: 1.22
go-version: 1.23
cache: false

- uses: actions/checkout@v4
Expand All @@ -121,7 +121,7 @@ jobs:
steps:
- uses: actions/setup-go@v5
with:
go-version: 1.22
go-version: 1.23
cache: false

- uses: actions/checkout@v4
Expand All @@ -144,7 +144,7 @@ jobs:
steps:
- uses: actions/setup-go@v5
with:
go-version: 1.22
go-version: 1.23
cache: false

- uses: actions/checkout@v4
Expand Down Expand Up @@ -172,7 +172,7 @@ jobs:
needs: [test-unit-coverage, builder-image]
container:
# image name needs to be hardcoded: https://github.com/orgs/community/discussions/26324
image: "ghcr.io/nolus-protocol/nolus-core/builder:1.22.5"
image: "ghcr.io/nolus-protocol/nolus-core/builder:1.23.0"

steps:
- uses: actions/checkout@v4
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test-cosmos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
steps:
- uses: actions/setup-go@v4
with:
go-version: 1.22
go-version: 1.23

- uses: actions/checkout@v3

Expand Down Expand Up @@ -63,7 +63,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: 1.22
go-version: 1.23

- uses: technote-space/[email protected]
id: git_diff
Expand Down Expand Up @@ -91,7 +91,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: 1.22
go-version: 1.23

- uses: technote-space/[email protected]
id: git_diff
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test-fuzz.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
steps:
- uses: actions/setup-go@v4
with:
go-version: 1.22
go-version: 1.23

- uses: actions/checkout@v3

Expand All @@ -23,7 +23,7 @@ jobs:
steps:
- uses: actions/setup-go@v4
with:
go-version: 1.22
go-version: 1.23

- uses: actions/checkout@v3

Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ FUZZ_BLOCK_SIZE ?= 200
export GO111MODULE = on

GO_SYSTEM_VERSION = $(shell go version | cut -c 14- | cut -d' ' -f1 | cut -d'.' -f1-2)
REQUIRE_GO_VERSION = 1.22
REQUIRE_GO_VERSION = 1.23

# Default target executed when no arguments are given to make.
default_target: all
Expand Down
4 changes: 1 addition & 3 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
module github.com/Nolus-Protocol/nolus-core

go 1.22.6

toolchain go1.22.7
go 1.23.2

require (
github.com/CosmWasm/wasmd v0.53.0
Expand Down
79 changes: 0 additions & 79 deletions go.sum

Large diffs are not rendered by default.

0 comments on commit ec2a469

Please sign in to comment.