Skip to content

Commit

Permalink
build: upgrade Go version to 1.22 (#812)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhenghaoz authored Mar 16, 2024
1 parent e9a80e5 commit 8fa52f0
Show file tree
Hide file tree
Showing 11 changed files with 19 additions and 19 deletions.
4 changes: 2 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ jobs:
- run:
name: Upgrade Go
command: |
wget https://golang.org/dl/go1.21.0.linux-arm64.tar.gz
wget https://golang.org/dl/go1.22.0.linux-arm64.tar.gz
sudo rm -rf /usr/local/go
sudo tar -C /usr/local -xzf go1.21.0.linux-arm64.tar.gz
sudo tar -C /usr/local -xzf go1.22.0.linux-arm64.tar.gz
- restore_cache:
keys:
- go-mod-v4-{{ checksum "go.sum" }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ jobs:
name: build binaries
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.21.x
- name: Set up Go 1.22.x
uses: actions/setup-go@v4
with:
go-version: 1.21.x
go-version: 1.22.x
id: go

- name: Pull source
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/build_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,10 @@ jobs:
unzip ~/.gorse/download/ml-tag.zip -d ~/.gorse/dataset
unzip ~/.gorse/download/criteo.zip -d ~/.gorse/dataset
- name: Set up Go 1.21.x
- name: Set up Go 1.22.x
uses: actions/setup-go@v4
with:
go-version: 1.21.x
go-version: 1.22.x
id: go

- name: Check out code into the Go module directory
Expand Down Expand Up @@ -142,10 +142,10 @@ jobs:
# Retry all errors, including 404. This option might trigger curl upgrade.
retry-all: true

- name: Set up Go 1.21.x
- name: Set up Go 1.22.x
uses: actions/setup-go@v4
with:
go-version: 1.21.x
go-version: 1.22.x
id: go

- name: Test
Expand All @@ -172,10 +172,10 @@ jobs:
MYSQL_ROOT_PASSWORD: password

steps:
- name: Set up Go 1.21.x
- name: Set up Go 1.22.x
uses: actions/setup-go@v4
with:
go-version: 1.21.x
go-version: 1.22.x
id: go

- name: Check out code into the Go module directory
Expand All @@ -192,7 +192,7 @@ jobs:
steps:
- uses: actions/setup-go@v4
with:
go-version: 1.21.x
go-version: 1.22.x
- uses: actions/checkout@v2
- name: golangci-lint
uses: golangci/golangci-lint-action@v2
Expand Down
2 changes: 1 addition & 1 deletion cmd/gorse-in-one/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
############################
# STEP 1 build executable binary
############################
FROM golang:1.21
FROM golang:1.22

COPY . gorse

Expand Down
2 changes: 1 addition & 1 deletion cmd/gorse-in-one/Dockerfile.windows
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
############################
# STEP 1 build executable binary
############################
FROM golang:1.21
FROM golang:1.22

COPY . gorse

Expand Down
2 changes: 1 addition & 1 deletion cmd/gorse-master/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
############################
# STEP 1 build executable binary
############################
FROM golang:1.21
FROM golang:1.22

WORKDIR /src

Expand Down
2 changes: 1 addition & 1 deletion cmd/gorse-master/Dockerfile.windows
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
############################
# STEP 1 build executable binary
############################
FROM golang:1.21
FROM golang:1.22

COPY . gorse

Expand Down
2 changes: 1 addition & 1 deletion cmd/gorse-server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
############################
# STEP 1 build executable binary
############################
FROM golang:1.21
FROM golang:1.22

WORKDIR /src

Expand Down
2 changes: 1 addition & 1 deletion cmd/gorse-server/Dockerfile.windows
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
############################
# STEP 1 build executable binary
############################
FROM golang:1.21
FROM golang:1.22

COPY . gorse

Expand Down
2 changes: 1 addition & 1 deletion cmd/gorse-worker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
############################
# STEP 1 build executable binary
############################
FROM golang:1.21
FROM golang:1.22

WORKDIR /src

Expand Down
2 changes: 1 addition & 1 deletion cmd/gorse-worker/Dockerfile.windows
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
############################
# STEP 1 build executable binary
############################
FROM golang:1.21
FROM golang:1.22

COPY . gorse

Expand Down

0 comments on commit 8fa52f0

Please sign in to comment.