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(*) improve go mod handling in 1.14 #813

Merged
merged 3 commits into from
Jun 9, 2020
Merged

Conversation

nickolaev
Copy link
Contributor

@nickolaev nickolaev commented Jun 5, 2020

Summary

Having a folder called vendor confuses go 1.14. Rename it to vendored
and this solves many potential issues. Including the need to pass -mod=mod
in many cases.

Reference: https://github.com/Kong/kuma/pull/718#issuecomment-625894360

We also bump OS/Xcode to 11.5.0 and Ubuntu 18.04 images in CircleCI.
A slight rearrangement of the dev_ubuntu target was needed in order to make tests actually pass and avoid the strange behavior when using Circle's own git client.

Having a folder called `vendor` confises go 1.14. Rename it to `vendored`
and this solves many potential issues. Including the need to pass `-mod=mod`
in many cases.

https://github.com/Kong/kuma/pull/718#issuecomment-625894360

Signed-off-by: Nikolay Nikolaev <nikolay.nikolaev@konghq.com>
@nickolaev nickolaev requested a review from a team June 5, 2020 09:56
@nickolaev nickolaev force-pushed the chore/fix_vendor_issues branch 5 times, most recently from 160866b to 77ee2bb Compare June 5, 2020 14:12
Signed-off-by: Nikolay Nikolaev <nikolay.nikolaev@konghq.com>
@nickolaev nickolaev force-pushed the chore/fix_vendor_issues branch from 77ee2bb to 094f5f4 Compare June 5, 2020 15:19
Signed-off-by: Nikolay Nikolaev <nikolay.nikolaev@konghq.com>
@nickolaev nickolaev force-pushed the chore/fix_vendor_issues branch from 094f5f4 to d9467d6 Compare June 5, 2020 15:40
@@ -29,7 +29,7 @@ build_info_ld_flags := $(foreach entry,$(build_info_fields), -X github.com/Kong/
LD_FLAGS := -ldflags="-s -w $(build_info_ld_flags)"
GOOS := $(shell go env GOOS)
GOARCH := $(shell go env GOARCH)
GOFLAGS := -mod=mod
GOFLAGS :=
Copy link
Contributor

Choose a reason for hiding this comment

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

Probably we don't need this variable anymore

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Well you never know. Let's keep it as a generic option that marks the places where it is used, so we can quickly add options if we need them in Go 1.15 for example ;)

@nickolaev nickolaev merged commit 3dfed93 into master Jun 9, 2020
@nickolaev nickolaev deleted the chore/fix_vendor_issues branch June 10, 2020 12:19
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.

3 participants