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

all: Bump Golang minor versions in accordance with latest release. #3693

Merged
merged 5 commits into from
Jun 16, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Next Next commit
Bump minor Golang version in CI in accordance w/ latest release
  1.16.5
  1.15.13
  • Loading branch information
Shaptic committed Jun 15, 2021
commit bf3c5e99044c377db03dcad38177a2d52a5782a2
16 changes: 8 additions & 8 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@ commands:
name: Download and install golang
command: |
sudo rm -rf /usr/local/go
wget https://dl.google.com/go/go1.16.3.linux-amd64.tar.gz
sudo tar -C /usr/local -xzf go1.16.3.linux-amd64.tar.gz
wget https://dl.google.com/go/go1.16.5.linux-amd64.tar.gz
sudo tar -C /usr/local -xzf go1.16.5.linux-amd64.tar.gz

# install_go_deps installs the go dependencies of the project.
install_go_deps:
Expand Down Expand Up @@ -227,7 +227,7 @@ jobs:
check_code_1_16:
working_directory: /go/src/github.com/stellar/go
docker:
- image: golang:1.16
- image: golang:1.16.5
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we should replace it with:

Suggested change
- image: golang:1.16.5
- image: golang:1.16

so that it will always pull latest Golang 1.16.x. This was recommended by @jacekn and @satyamz in the issue about bumping Golang versions in SDF. Same thing for 1.15.x.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like this idea. We basically always want to be on latest patch release. Let's do it.

For minor versions let's stick to manual update for now.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool, I didn't realize 1.16 would always be the latest

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done!

steps:
- install_go_deps
- check_go_deps
Expand All @@ -241,7 +241,7 @@ jobs:
test_code_1_15:
working_directory: /go/src/github.com/stellar/go
docker:
- image: golang:1.15.11
- image: golang:1.15.13
environment:
GO111MODULE: "on"
PGHOST: localhost
Expand All @@ -261,7 +261,7 @@ jobs:
test_code_1_15_postgres10:
working_directory: /go/src/github.com/stellar/go
docker:
- image: golang:1.15.11
- image: golang:1.15.13
environment:
GO111MODULE: "on"
PGHOST: localhost
Expand All @@ -282,7 +282,7 @@ jobs:
test_code_1_16:
working_directory: /go/src/github.com/stellar/go
docker:
- image: golang:1.16.3
- image: golang:1.16.5
environment:
GO111MODULE: "on"
PGHOST: localhost
Expand All @@ -302,7 +302,7 @@ jobs:
test_code_1_16_postgres10:
working_directory: /go/src/github.com/stellar/go
docker:
- image: golang:1.16.3
- image: golang:1.16.5
environment:
GO111MODULE: "on"
PGHOST: localhost
Expand All @@ -325,7 +325,7 @@ jobs:
publish_artifacts:
working_directory: /go/src/github.com/stellar/go
docker:
- image: golang:1.16.3
- image: golang:1.16.5
steps:
- check_deprecations
- install_go_deps
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
go: [1.16.4]
bartekn marked this conversation as resolved.
Show resolved Hide resolved
go: [1.16.5]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
Expand All @@ -29,7 +29,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
go: [1.16.4, 1.15.11]
go: [1.16.5, 1.15.13]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
Expand All @@ -43,7 +43,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
go: [1.16.4, 1.15.11]
go: [1.16.5, 1.15.13]
pg: [9.6.5, 10]
runs-on: ${{ matrix.os }}
services:
Expand Down