Skip to content

Commit

Permalink
upgrade to golang 1.22
Browse files Browse the repository at this point in the history
  • Loading branch information
liam.lai committed Dec 17, 2024
1 parent 0f8abf5 commit 7d079f3
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 188 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
uses: actions/setup-go@v5
with:
cache: false
go-version: '1.21.x'
go-version: '1.22.x'
- name: Run tests
run: ${{ matrix.script }}
env:
Expand Down
180 changes: 0 additions & 180 deletions .travis.yml.bak

This file was deleted.

2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.21-alpine as builder
FROM golang:1.22-alpine as builder

RUN apk add --no-cache make gcc musl-dev linux-headers git

Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.bootnode
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.21-alpine as builder
FROM golang:1.22-alpine as builder

RUN apk add --no-cache make gcc musl-dev linux-headers

Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.node
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.21-alpine as builder
FROM golang:1.22-alpine as builder

RUN apk add --no-cache make gcc musl-dev linux-headers git

Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

GOBIN = $(shell pwd)/build/bin
GOFMT = gofmt
GO ?= 1.21.3
GO ?= 1.22.10
GO_PACKAGES = .
GO_FILES := $(shell find $(shell go list -f '{{.Dir}}' $(GO_PACKAGES)) -name \*.go)

Expand Down
2 changes: 1 addition & 1 deletion build/ci.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ func doInstall(cmdline []string) {

if minor < 21 {
log.Println("You have Go version", runtime.Version())
log.Println("XDC requires at least Go version 1.21 and cannot")
log.Println("XDC requires at least Go version 1.22 and cannot")
log.Println("be compiled with an earlier version. Please upgrade your Go installation.")
os.Exit(1)
}
Expand Down
2 changes: 1 addition & 1 deletion cicd/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.21-alpine as builder
FROM golang:1.22-alpine as builder

RUN apk add make build-base linux-headers

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/XinFinOrg/XDPoSChain

go 1.21
go 1.22

require (
github.com/VictoriaMetrics/fastcache v1.12.2
Expand Down

0 comments on commit 7d079f3

Please sign in to comment.