-
Notifications
You must be signed in to change notification settings - Fork 74
Enable Go dependency updates in Renovate config #3308
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
Conversation
Skipping CI for Draft Pull Request. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mansikulkarni96 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
renovate.json
Outdated
"commitMessageTopic": "Go dependencies", | ||
"matchManagers": ["gomod"], | ||
"excludePackageNames": [ | ||
"k8s.io/kubernetes" |
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.
need to also exclude OpenShift ones, they are handled in the submodule update script
renovate.json
Outdated
"enabled": false, | ||
"enabled": true, |
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.
Will this expand recursively to submodules?
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.
no it doesnt do recursive updates, it scans .gitmodules file in the root repository
- Updates submodule commit hashes when newer commits are available in upstream repos
- Only handles direct submodules - not submodules within submodules
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.
Neat! Do you think it can replace the manual hack/submodule update flow?
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.
yes it can but the issue we are going to run into is with the version bumps that need to go into the Makefile.
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 follow
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.
fairly certain this was removed because it doesn't work in the way we want.
ignorePaths
couldnt be used on specific submodules.
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 was remembering incorrectly
4b93f24
I'd like to see the documentation for this change.
Also this is not related to Enable Go dependency updates in Renovate config
renovate.json
Outdated
"allowedPostUpgradeCommands": [ | ||
"^rpm-lockfile-prototype rpms.in.yaml$", | ||
"^go mod vendor$", | ||
"^go mod tidy$" |
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.
consider adding go mod verify
de64e3b
to
65d7c49
Compare
6b87563
to
62aec6d
Compare
62aec6d
to
efde8d4
Compare
LGTM, will defer the final stamp to @sebsoto |
renovate.json
Outdated
"allowedCommands": [ | ||
"^rpm-lockfile-prototype rpms.in.yaml$" | ||
], | ||
"allowedPostUpgradeCommands": [ |
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.
https://docs.renovatebot.com/self-hosted-configuration/#allowedcommands
looks like this should be merged into allowedCommands
renovate.json
Outdated
{ | ||
"groupName": "Go dependencies", | ||
"commitMessageAction": "", | ||
"commitMessageTopic": "Go dependencies", |
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.
https://docs.renovatebot.com/configuration-options/#commitmessagetopic
Looks like this might be for the individual dependency. Lets start with the default recommended value
renovate.json
Outdated
"packageRules": [ | ||
{ | ||
"groupName": "Go dependencies", | ||
"commitMessageAction": "", |
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.
What is this overriding?
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.
Looks like default is update
. Don't think we need to change it.
https://docs.renovatebot.com/configuration-options/#commitmessagetopic
Add gomod manager and vendor directory handling to automatically update Go dependencies and their vendored files via Renovate PRs.
efde8d4
to
191accc
Compare
/lgtm |
@mansikulkarni96: all tests passed! Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
Add gomod manager and vendor directory handling to automatically update Go dependencies and their vendored files via Renovate PRs.