Skip to content
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

build: upgrade Go version to 1.22 #812

Merged
merged 1 commit into from
Mar 16, 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
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
Loading