provider: Development and testing updates for Go 1.16 upgrade, proper impi handling in tools Go module, and update golangci-lint@v1.37.1 #17795
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Community Note
Reference: #17743
Reference: #17685
Reference: https://golang.org/doc/go1.16
This change request bundles a few related items around the Go 1.16 upgrade and changes to the
tools
Go module:GO111MODULE=on
environment variable handling in GitHub Actions and GNUmakefile as that is now the default behavior in Go 1.16impi
intotools/main.go
so it shows as needing to be versioned in thetools
Go modulegolangci-lint
intools
since dependabot has been having trouble with this change for some reasongo mod tidy
intools
with Go 1.16, which is the majority of the automatic updates intools/go.sum
Now with Go 1.16, we can use
go install PACKAGE@VERSION
if we no longer want to use thetools
Go module strategy, however that will also remove dependabot pinging us on tooling updates.Output from acceptance testing: N/A (CI)