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

Update go to 1.18 #131

Closed
wants to merge 1 commit into from
Closed

Update go to 1.18 #131

wants to merge 1 commit into from

Conversation

xzfc
Copy link
Contributor

@xzfc xzfc commented Apr 23, 2022

networkservicemesh/sdk#1264

  • In GitHub workflow yamls, update go to 1.18 and golangci-lint to 1.45.2.
  • Update go.mod files to use go 1.18.
  • Replace deprecated linters: golint -> revive, scopelint -> exportloopref`.
  • Fix goheader linting rule configuration.
  • Fix linter issues introduced by the new golangci-lint version.
    * List tool dependencies in tools.go as recommended in the official go wiki, since installing tools via go get no longer works for go 1.18.

@@ -99,14 +99,15 @@ jobs:
- uses: actions/checkout@v2
- uses: arduino/setup-protoc@master
with:
version: '3.14.0'
version: '3.19.4'
Copy link
Member

Choose a reason for hiding this comment

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

@xzfc Why do we need to update protoc?

Signed-off-by: Albert Safin <albert.safin@xored.com>
- name: Install proto-gen-go
run: go get -u github.com/golang/protobuf/protoc-gen-go@v1.5.2
run: go install github.com/golang/protobuf/protoc-gen-go@v1.5.2
Copy link
Member

Choose a reason for hiding this comment

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

I think we can move this to go generate:// section.

@@ -48,11 +48,11 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v1
with:
go-version: 1.16
go-version: 1.18
Copy link
Member

Choose a reason for hiding this comment

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

Please change version to 1.18.1

@denis-tingaikin
Copy link
Member

Resolved via #132

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.

2 participants