-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Upgrade go compiler 1.13.4 -> 1.14.3 #6359
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1.13.4 | ||
1.14.3 |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,15 +2,13 @@ TEST?=$$(go list ./...) | |
WEBSITE_REPO=github.com/hashicorp/terraform-website | ||
PKG_NAME=google | ||
|
||
GO111MODULE=on | ||
|
||
default: build | ||
|
||
build: fmtcheck generate | ||
go install | ||
|
||
test: fmtcheck generate | ||
go test $(TESTARGS) -timeout=30s -parallel=4 $(TEST) | ||
go test $(TESTARGS) -timeout=30s $(TEST) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
|
||
testacc: fmtcheck generate | ||
TF_ACC=1 TF_SCHEMA_PANIC_ON_ERROR=1 go test $(TEST) -v $(TESTARGS) -timeout 240m -ldflags="-X=github.com/terraform-providers/terraform-provider-google/version.ProviderVersion=acc" | ||
|
@@ -63,4 +61,3 @@ docscheck: | |
@sh -c "'$(CURDIR)/scripts/docscheck.sh'" | ||
|
||
.PHONY: build test testacc vet fmt fmtcheck lint tools errcheck test-compile website website-test docscheck generate | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,4 +24,4 @@ require ( | |
google.golang.org/api v0.23.0 | ||
) | ||
|
||
go 1.13 | ||
go 1.14 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This line doesn't prevent recent Go 1.13 compilers from building the plugin. It just says "use the latest modules behavior." Keeping this up-to-date can prevent some dependency headaches. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm so sorry. As I'm making these changes in beta, I saw this and I wonder if it does any harm leaving this in? I'm thinking in case the current environment already has it set, it might be nice to have this here to override it specifically for this makefile. What do you think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, I don't think there are too many people who have
GO111MODULE=off
in their shell configs. That would break too many things. The only time I've seen in set tooff
is when you're want the oldgo get
behavior, e.g.I could be wrong, though.
My preference is to embrace the new default behavior, and let people disable it inline (like the snippet above), but I'll leave it up to you.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok! We'll try it and if we get any feedback we can always add it back in. That sounds find to me! Thanks!