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 project to use Go v1.19.2 #4470

Merged
merged 4 commits into from Oct 27, 2022
Merged

Update project to use Go v1.19.2 #4470

merged 4 commits into from Oct 27, 2022

Conversation

nopcoder
Copy link
Contributor

@nopcoder nopcoder commented Oct 26, 2022

  • Use Go v1.19.2 to build and release
  • Upgrade golangci-lint to latest v1.50.1
  • Update relevant packages
  • Fix lint code format
  • Fix lint security issue related to http read header timeout (set to 1 minute)

Close #4472
Fix #4485

Waiting for pending PR to fix lint issues with deprected APIs.
Note we are still not using new features and we are based on 1.17.
@nopcoder nopcoder added the infrastructure build, deploy and release processes label Oct 26, 2022
@nopcoder nopcoder self-assigned this Oct 26, 2022
@nopcoder nopcoder added the exclude-changelog PR description should not be included in next release changelog label Oct 26, 2022
@nopcoder nopcoder removed the request for review from itaiad200 October 26, 2022 12:12
@nopcoder nopcoder marked this pull request as draft October 26, 2022 12:12
@nopcoder nopcoder requested a review from a team October 26, 2022 12:58
@nopcoder nopcoder marked this pull request as ready for review October 26, 2022 12:58
Copy link
Member

@N-o-Z N-o-Z left a comment

Choose a reason for hiding this comment

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

👍🏽 Maybe notify on dev channel before merge, so people won't be surprised when trying to build from latest master

go.mod Show resolved Hide resolved
@nopcoder nopcoder enabled auto-merge (squash) October 27, 2022 08:44
@nopcoder nopcoder requested a review from N-o-Z October 27, 2022 08:44
Copy link
Contributor

@itaiad200 itaiad200 left a comment

Choose a reason for hiding this comment

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

some minor comments

@@ -1492,7 +1493,8 @@ func listDiffHelper(it EntryDiffIterator, prefix, delimiter string, limit int, a
}

func (c *Catalog) Merge(ctx context.Context, repositoryID string, destinationBranch string, sourceRef string,
committer string, message string, metadata Metadata, strategy string) (string, error) {
committer string, message string, metadata Metadata, strategy string,
Copy link
Contributor

Choose a reason for hiding this comment

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

revert

Copy link
Contributor Author

Choose a reason for hiding this comment

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

was on auto-merge - I'll revert to oneliner in a different pr.

// // handle err, results, etc..
// }
//
// func batch(manager RangeManager, bwc BatchWriterCloser) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do we need all this whitespace?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Part of the changes introduced in Go fmt 1.19 - https://tip.golang.org/doc/go1.19.
When you run gofmt -s -w <file> it will apply the above on existing code comments.

Copy link
Member

@N-o-Z N-o-Z left a comment

Choose a reason for hiding this comment

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

👍🏽

@nopcoder nopcoder merged commit 4153e64 into master Oct 27, 2022
@nopcoder nopcoder deleted the chore/go1.19.2 branch October 27, 2022 10:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
exclude-changelog PR description should not be included in next release changelog infrastructure build, deploy and release processes
Projects
None yet
3 participants