Skip to content

chore: bump go to 1.22 #61

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ARG IMG_TAG=latest

# Compile the atomoned binary
FROM golang:1.21-alpine AS atomoned-builder
FROM golang:1.22-alpine AS atomoned-builder
WORKDIR /src/app/
COPY go.mod go.sum* ./
RUN go mod download
Expand Down
19 changes: 18 additions & 1 deletion UPGRADING.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
# Upgrade AtomOne
# Upgrading AtomOne

This guide provides instructions for upgrading to specific versions of AtomOne.

## Go version bump

AtomOne v2 build requires a more recent version of the Go compiler: 1.22.10. If
you already have go installed but with an other version, you can install
go1.22.10 with the following command:

```sh
$ go install golang.org/dl/go1.22.10@latest
$ go1.22.10 download
```

Then you need to update some env variables to invoke the makefile commands of
AtomOne. For example, to run `make build` :
```
$ GOROOT=$(go1.22.10 env GOROOT) PATH=$GOROOT/bin:$PATH make build
```
2 changes: 1 addition & 1 deletion contrib/Dockerfile.test
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# > docker build -t atomone .
# > docker run -it -p 46657:46657 -p 46656:46656 -v ~/.atomone:/root/.atomone atomone atomoned init
# > docker run -it -p 46657:46657 -p 46656:46656 -v ~/.atomone:/root/.atomone atomone atomoned start
FROM golang:1.21-alpine AS build-env
FROM golang:1.22-alpine AS build-env

# Set up dependencies
ENV PACKAGES curl make git libc-dev bash gcc linux-headers eudev-dev python3
Expand Down
2 changes: 1 addition & 1 deletion contrib/devdeps/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/atomone-hub/atomone/contrib/devdeps

go 1.21
go 1.22

require (
github.com/golangci/golangci-lint v1.56.0
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/atomone-hub/atomone

go 1.21.13
go 1.22.10

require (
cosmossdk.io/api v0.3.1
Expand Down
Loading