-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Go modules - vendoring support #2580
Comments
Waiting on #2431 |
I think we would need to run an additional I'm not sure whether to run it with the source code present or not. It would be easier to just run it in the cloned dir which already had Also, ideally we could update the vendoring for just one of the modules, not others which may not be relevant to the PR. |
If you have the code it would also be useful to run a |
@paultyng yes, we can do that too - although I have some doubts about whether everyone would want that. Unless everyone else in the project has diligently tidied the checksum file then you’ll see Renovate’s tidying removing a confusing number of lines unrelated to the actual PR’s changes to go.mod. Russ Cox’s opinion seems to be that users shouldn’t fixate too much on “old” lines in go.sum. |
|
Good point, vendoring is definitely the priority. |
@paultyng do you have any public repo requiring vendoring that I can use to test with when we implement? |
Any of our apps in https://github.com/hashicorp or https://github.com/terraform-providers vendor (not our libraries). Specifically you could look at https://github.com/terraform-providers/terraform-provider-newrelic which was the one I was playing with for automatic PR creation. |
@rarkins any news on this? I would happily upgrade to Pro (if we aren't already) to use this with all our Go repos. |
@paultyng I think this one can be completed pretty soon actually. Thanks for the reminder! |
@paultyng FYI here is an example from the work in progress: renovate-tests/terraform-provider-newrelic#14 |
This is great! Will it be optional whether you want a |
@rarkins awesome!! Very excited for this. Great work. |
I thought vendor should run every time if there’s a |
@rarkins yeah that sounds reasonable to me! |
Detects if a `vendor/modules.txt` is present and runs `go mod vendor` if so. Requires gitFs to work. Closes #2580
🎉 This issue has been resolved in version 14.16.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
How does this get enabled for a project? I recently had renovatebot update modules, but not I'm not seeing configuration options to force |
@adamdecaf right now I am doing the switch manually and check the logs every day or two for repos that need it. I switched all of |
Oh cool! I didn't know about renovatebot.com/dashboard, thanks! |
Third step for go modules support - updating
vendor/
directory along withgo.mod
andgo.sum
.The text was updated successfully, but these errors were encountered: