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

chore: bump minimal Go version to 1.20 #1497

Merged
merged 19 commits into from
Aug 14, 2023

Conversation

mdelapenya
Copy link
Collaborator

@mdelapenya mdelapenya commented Aug 11, 2023

What does this PR do?

This PR adds a shell script (and docs) to bump the Go version across all project files:

  • go.mod files
  • Github Action workflows
  • Markdown files
  • Devcontainer configuration

There is a few places in the Github actions that, instead of using a fixed Go version, the GH action to install Go uses a go-version-file property, pointing to the go.mod. Where possible, we are using it instead of a fixed version, so upcoming updates won't be needed in those cases. These places are:

  • the Windows workflow, where we want to test one single version, no matrices
  • the golangci-lint workflow

Why is it important?

Go 1.21 is out, and Go 1.19 was deprecated 2 days ago, so we needed to bump the versions, as GH workers are starting to use Go 1.21 when requesting Go 1.x.

Because there is an open issue to automate the process, I've included the script in the same PR to bump the versions.

Related issues

How to test this PR

Please run the following commands:

Bump Go to 1.21

./scripts/bump-go.sh "1.21"

All affected files will be bumped.

Keep Go 1.20

./scripts/bump-go.sh "1.20"

No files will be modified.

Downgrade Go to 1.19

./scripts/bump-go.sh "1.19"

All affected files will be downgraded.

@mdelapenya mdelapenya requested a review from a team as a code owner August 11, 2023 10:03
@mdelapenya mdelapenya added chore Changes that do not impact the existing functionality dependencies Dependencies or external services labels Aug 11, 2023
@mdelapenya mdelapenya self-assigned this Aug 11, 2023
@netlify
Copy link

netlify bot commented Aug 11, 2023

Deploy Preview for testcontainers-go ready!

Name Link
🔨 Latest commit 4fd5e3f
🔍 Latest deploy log https://app.netlify.com/sites/testcontainers-go/deploys/64da12532c33e70007055e28
😎 Deploy Preview https://deploy-preview-1497--testcontainers-go.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

mdelapenya added a commit to abemedia/testcontainers-go that referenced this pull request Aug 14, 2023
mdelapenya added a commit that referenced this pull request Aug 14, 2023
* feat(modules): add artemis container

* chore: improve docs, use assert for tests

* chore: bump Go to 1.20

See #1497

---------

Co-authored-by: Manuel de la Peña <social.mdelapenya@gmail.com>
@sonarcloud
Copy link

sonarcloud bot commented Aug 14, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@mdelapenya
Copy link
Collaborator Author

Merging, as CI passed before the latest commit (resolving conflicts in ci.yml)

@mdelapenya mdelapenya merged commit e39e2a0 into testcontainers:main Aug 14, 2023
17 of 18 checks passed
@mdelapenya mdelapenya deleted the bump-go-version branch August 14, 2023 11:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Changes that do not impact the existing functionality dependencies Dependencies or external services
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Enhancement]: Go 1.21 was released, update Go versions Automate the bump of the language at any place
1 participant