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: bump Go to v1.20 #2409

Merged
merged 17 commits into from
Apr 20, 2023
Merged

build: bump Go to v1.20 #2409

merged 17 commits into from
Apr 20, 2023

Conversation

sainoe
Copy link
Contributor

@sainoe sainoe commented Apr 17, 2023

Description

Closes: #2282

  • bump golangci to v1.52.2
  • disable the "unused-parameter" warning from revive linter

Author Checklist

All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.

I have...

  • Included the correct type prefix in the PR title
  • Added ! to the type prefix if API or client breaking change
  • Targeted the correct branch (see PR Targeting)
  • Provided a link to the relevant issue or specification
  • Followed the guidelines for building SDK modules
  • Included the necessary unit and integration tests
  • Added a changelog entry to CHANGELOG.md
  • Included comments for documenting Go code
  • Updated the relevant documentation or specification
  • Reviewed "Files changed" and left comments if necessary
  • Confirmed all CI checks have passed

Reviewers Checklist

All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.

I have...

  • confirmed the correct type prefix in the PR title
  • confirmed ! in the type prefix if API or client breaking change
  • confirmed all author checklist items have been addressed
  • reviewed state machine logic
  • reviewed API design and naming
  • reviewed documentation is accurate
  • reviewed tests and test coverage

docs/getting-started/installation.md Outdated Show resolved Hide resolved
glnro
glnro previously requested changes Apr 17, 2023
Copy link
Contributor

@glnro glnro left a comment

Choose a reason for hiding this comment

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

Forgot you need to change the makefile to update the version of go required to build.

@mpoke
Copy link
Contributor

mpoke commented Apr 17, 2023

@sainoe could you please get the linter check pass?

@sainoe
Copy link
Contributor Author

sainoe commented Apr 17, 2023

@mpoke I think that the linter passes. There are just some golangci warning msgs for some files changed by this PR.

@sainoe sainoe requested a review from mmulji-ic April 18, 2023 08:03
@mpoke mpoke requested a review from glnro April 18, 2023 08:11
@mmulji-ic
Copy link
Contributor

@sainoe sonarcloud is failing with. I think that this is ok as this image is used only for testing. For other images we should use nonroot user.

Could you address the lint issues

@mpoke mpoke dismissed glnro’s stale review April 19, 2023 09:09

Change requests were addressed.

Copy link
Contributor

@MSalopek MSalopek left a comment

Choose a reason for hiding this comment

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

Looks good!

Should any changes for v9.0.x should still use go1.18?

@mpoke
Copy link
Contributor

mpoke commented Apr 20, 2023

Should any changes for v9.0.x should still use go1.18?

Yes. Bumping go is state-machine breaking!

@mpoke mpoke merged commit cb523c0 into main Apr 20, 2023
@mpoke mpoke deleted the sainoe/go120 branch April 20, 2023 09:41
mergify bot pushed a commit that referenced this pull request May 17, 2023
* bump Go to 1.19

* Bump Go to 1.20

* update docs

* Update docs/getting-started/installation.md

Co-authored-by: lg <[email protected]>

* bump golangci in gh workflow

* set actions/checkout version back to v3.5.2

* change go-version from 1.20 to 1.20.x in actions/setup-go

* nit in gh workflow

* first attempt to use two diff go version in gh workflows

* 2nd attempt

* update changelog

* set user in e2e.Dockerfile

* Run E2E docker containers using nonroot

* update revive linter rules

* revert changes in e2e.Dockerfile

* attempt to fix gh workflow and sonarcloud error

---------

Co-authored-by: lg <[email protected]>
(cherry picked from commit cb523c0)

# Conflicts:
#	.github/workflows/lint.yml
#	.github/workflows/sim-label.yml
#	.github/workflows/sims.yml
#	.github/workflows/test.yml
- uses: technote-space/[email protected]
with:
PATTERNS: |
**/**.go
go.mod
go.sum
- uses: actions/setup-go@v4
with:
go-version: 1.18
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is this version 1.18?

shaspitz added a commit that referenced this pull request May 18, 2023
* build: bump Go to v1.20 (#2409)

* bump Go to 1.19

* Bump Go to 1.20

* update docs

* Update docs/getting-started/installation.md

Co-authored-by: lg <[email protected]>

* bump golangci in gh workflow

* set actions/checkout version back to v3.5.2

* change go-version from 1.20 to 1.20.x in actions/setup-go

* nit in gh workflow

* first attempt to use two diff go version in gh workflows

* 2nd attempt

* update changelog

* set user in e2e.Dockerfile

* Run E2E docker containers using nonroot

* update revive linter rules

* revert changes in e2e.Dockerfile

* attempt to fix gh workflow and sonarcloud error

---------

Co-authored-by: lg <[email protected]>
(cherry picked from commit cb523c0)

# Conflicts:
#	.github/workflows/lint.yml
#	.github/workflows/sim-label.yml
#	.github/workflows/sims.yml
#	.github/workflows/test.yml

* fix conflicts

* missed one

---------

Co-authored-by: Simon Noetzlin <[email protected]>
Co-authored-by: Shawn <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bump go to 1.20
6 participants