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(*) cleanup after upgrading to go 1.14 #727

Merged
merged 8 commits into from May 11, 2020

Conversation

nickolaev
Copy link
Contributor

@nickolaev nickolaev commented May 9, 2020

Summary

After the upgrade to go 1.14 in #718, the golang-ci is actually not completing its run
successfully. Fixing this by bumping its version to 1.26 (latest) uncovers an issue with a
deprecated call BuildNameToCertificate, which can be omitted.
Also run go mod tidy to cleanup unneeded dependencies.

Full changelog

  • chore(*) cleanup dependencies go mod tidy
  • fix(kuma-cp) remove deprecated function call
  • chore(*) bump gloangci-lint version

Issues resolved

None

@nickolaev nickolaev requested a review from a team May 9, 2020 10:50
Copy link
Contributor

@jakubdyszkiewicz jakubdyszkiewicz left a comment

Choose a reason for hiding this comment

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

Awesome, thanks!

I love all the removed dependencies. Can we integrate go mod tidy in our Makefiles? Maybe on make check?

@nickolaev
Copy link
Contributor Author

@jakubdyszkiewicz excellent idea. I will use this PR to push the proposed addition make check.

@nickolaev nickolaev changed the title Chore/cleanup after go14 chore(*) cleanup after upgrading to go 1.14 May 11, 2020
Nikolay Nikolaev added 7 commits May 11, 2020 14:11
after e4d31d, the linter does nto finish its job and complains  with
"WARN [runner] Can't run linter goanalysis_metalinter" and
"export data is newer version - update tool". This is described here
golangci/golangci-lint#893. The solution is to
use newer golangci-lint, which is done here.

Signed-off-by: Nikolay Nikolaev <nikolay.nikolaev@konghq.com>
Go 1.14 deprecates BuildNameToCertificate as described here
golang/go#37626

Fixing the linter exposes this issue and it's fixed here.

Signed-off-by: Nikolay Nikolaev <nikolay.nikolaev@konghq.com>
Signed-off-by: Nikolay Nikolaev <nikolay.nikolaev@konghq.com>
Signed-off-by: Nikolay Nikolaev <nikolay.nikolaev@konghq.com>
Also Move the namespace creation to BeforeSuite section in k8s
store testing.

Signed-off-by: Nikolay Nikolaev <nikolay.nikolaev@konghq.com>
Signed-off-by: Nikolay Nikolaev <nikolay.nikolaev@konghq.com>
Signed-off-by: Nikolay Nikolaev <nikolay.nikolaev@konghq.com>
Signed-off-by: Nikolay Nikolaev <nikolay.nikolaev@konghq.com>
@nickolaev nickolaev merged commit b84f990 into master May 11, 2020
@nickolaev nickolaev deleted the chore/cleanup_after_go14 branch May 26, 2020 17:36
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.

None yet

2 participants