-
Notifications
You must be signed in to change notification settings - Fork 748
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
Updates to go 1.17 and bumps golangci-lint from 1.18.0 to 1.50.1 #1370
Conversation
Confirming that switching to Go 1.17 will not be a breaking change for consumers of this plugin. Developers will need to have Go 1.17 at a minimum installed, which they should anyways. Go supports the last two minor versions, so 1.16 isn't receiving patches anymore. This lint failure is obnoxious. I can reproduce it locally using the currently-specified version of golangci/golangci-lint and the latest version. There's a thread about similar issues here, here and here. Those threads seem to suggest that there's a missing dependency or perhaps a C library expected, though I don't see how that's possible given that the project builds just fine and the error is reproduceable with Another thing I tried is running I'll have to keep thinking about this one. |
Aha! The error is a real one, but it's in the testing code and not the building code which is why builds work fine still.
I'm still exploring how we might fix this. |
Okay, so here's the deal: we're dependent on an old version of hashicorp/terraform-provider-sdk. We can and should update that in the near future. That version of hashicorp/terraform-provider-sdk is dependent on v1.4.1 of spf13/afero. v1.5.0 of spf13/afero introduced the chown method to an interface that the terraform-plugin-sdk depends on. We can pin to v1.4.1 of spf13/afero (released on 6 October 2020) by running @nickfloyd would you like me to push the changes up to this branch or would you like to do it? |
Solid sleuthing! Feel free to make the change given you're already in there. Thanks for helping me get this one sorted! |
…egrations#1370) * Updates to go 1.17 and bumps golangci-lint from 1.18.0 to 1.50.1 * Pin to spf13/afero v1.4.1 * README now reflects updated Go version Co-authored-by: Keegan Campbell <[email protected]>
…egrations#1370) * Updates to go 1.17 and bumps golangci-lint from 1.18.0 to 1.50.1 * Pin to spf13/afero v1.4.1 * README now reflects updated Go version Co-authored-by: Keegan Campbell <[email protected]>
The dependency golangci-lint requires go v 1.17. This PR bumps that version as well as updates the vulnerable package.
NOTE: I'm not sure if this is a breaking change, but since CI uses go 1.19 I think we're ok. maintainers will need to update Go if they are currently @ 1.16
Additional info
Pull request checklist
Does this introduce a breaking change?
Please see our docs on breaking changes to help!
Type: Breaking change
label)@kfcampbell please verify that this would not be considered a breaking change
If
Yes
, what's the impact: