-
Notifications
You must be signed in to change notification settings - Fork 765
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
Fix go module path #961
Fix go module path #961
Conversation
Signed-off-by: Hasan Turken <turkenh@gmail.com>
After reviewing this we agree this is the right move from a Go project standpoint and would like to move forward with the changes. Hesitating here a bit to consider backwards compatibility and will return with more details. In the meantime, can you provide some more information around what obstacle this creates for your use case? |
Thanks for reviewing this @jcudit. In Terrajet project, we are working on generating Crossplane providers by leveraging existing Terraform providers. We are importing the provider package for its schema and this issue prevents us from importing the latest version. We are aware that it is not the suggested way and planning to change though. Given that this is unsupported, I couldn't insist on merging this. However, apart from our use case, I believe it is the correct way and could just be merged if it doesn't break anything :) |
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.
🤞🏾 this works as intended. Will keep an eye out for use cases we haven't considered that this may break 👀
I'm having trouble running a basic test locally with this branch as-is:
May not be as straightforward as I'd hoped. Aiming to revisit as part of the v5 release. |
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 unable to reproduce the errors @jcudit was seeing earlier; tests run for me locally with these changes. In addition, I've asked my coworker Alan about the safety of doing this, and I was reassured that it's okay.
I'll merge this shortly!
…ations#961) Signed-off-by: Hasan Turken <turkenh@gmail.com> Co-authored-by: Keegan Campbell <kfcampbell@github.com> Co-authored-by: Keegan Campbell <me@kfcampbell.com>
…ations#961) Signed-off-by: Hasan Turken <turkenh@gmail.com> Co-authored-by: Keegan Campbell <kfcampbell@github.com> Co-authored-by: Keegan Campbell <me@kfcampbell.com>
Description of the change
This PR fixes go module path per https://golang.org/ref/mod#module-path:
Appends
/v4
since the current major isv4
.Also fixes the repository path which seems to be legacy after migrating from https://github.com/hashicorp/terraform-provider-github.
How has this code been tested
make build