chore(hack): add script to update go modules#6713
chore(hack): add script to update go modules#6713ti-chi-bot[bot] merged 2 commits intopingcap:mainfrom
Conversation
Signed-off-by: liubo02 <liubo02@pingcap.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #6713 +/- ##
=======================================
Coverage 37.12% 37.12%
=======================================
Files 390 390
Lines 22347 22347
=======================================
Hits 8297 8297
Misses 14050 14050
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Pull request overview
This PR introduces a new script to selectively update Go module dependencies without bumping the minimum required Go version. The script provides fine-grained control over module updates through configurable prefixes, allowing patch-only updates for specified modules (like k8s.io and sigs.k8s.io) while permitting major/minor updates for others.
Changes:
- Added
hack/update-modules.shscript with command-line interface for selective module updates - Added
hack/lib/modules.shlibrary with helper functions for module management - Added
modules/updatetarget to Makefile for easy invocation
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 8 comments.
| File | Description |
|---|---|
| hack/update-modules.sh | Main script providing CLI interface for updating Go modules with configurable update policies (patch-only vs latest) for different module prefixes |
| hack/lib/modules.sh | Library of helper functions for module operations including version extraction, dependency filtering, and batch updates |
| Makefile | Adds new modules/update target that invokes the update script |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Signed-off-by: liubo02 <liubo02@pingcap.com>
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: csuzhangxc The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
[LGTM Timeline notifier]Timeline:
|
|
/cherry-pick release-2.0 |
|
@liubog2008: once the present PR merges, I will cherry-pick it on top of release-2.0 in the new PR and assign it to you. DetailsIn response to this:
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 ti-community-infra/tichi repository. |
Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
|
@liubog2008: new pull request created to branch DetailsIn response to this:
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 ti-community-infra/tichi repository. |
Now these modules can be updated by this script