-
Notifications
You must be signed in to change notification settings - Fork 40k
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
simplify update-vendor.sh to use go work sync
#123627
simplify update-vendor.sh to use go work sync
#123627
Conversation
@@ -180,210 +142,98 @@ function add_generated_comments() { | |||
go mod edit -fmt | |||
} | |||
|
|||
function add_staging_replace_directives() { |
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 is moved from Phase 2
and made a function we can apply to the root and staging modules, rather than our previous approach of messing with the root go.mod, copying it to all staging dirs, then fixing it up for the staging dirs
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.
sounds good!
go work sync
go work sync
@dims this is ready |
Glad we are getting rid of the "extra" scripts for go-workspace. |
ad78f2d
to
27c41e7
Compare
Looks way better than before! tried a few scenarios and they look good. /approve |
LGTM label has been added. Git tree hash: 48ec8036e7765f044f13b4ea6ad7e890082006ea
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dims, liggitt 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 |
@liggitt: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. 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. |
/retest |
e2e's are getting flaky :-/
|
/test pull-kubernetes-e2e-gce |
/pony sad |
In 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 kubernetes-sigs/prow repository. |
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.
Based purely on LOC deleted in my least-favorite shell script (sorry!):
/lgtm
local path_to_staging_k8s_io="$1" | ||
# Prune | ||
go mod edit -json \ | ||
| jq -r '.Require[]? | select(.Version == "v0.0.0") | "-droprequire \(.Path)"' \ |
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.
why the whitespace? Is it significant?
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.
not significant... I think this was snipped out of a function that used to run multiple of these and I was trying to align the common parts of the parallel lines (https://github.com/kubernetes/kubernetes/pull/123627/files#diff-b6ed2d0e481e37c6d38a9c0da57141de5245f4a4b58ee5d49ca95f7f2f7b010dL210-L215)? hard to remember, I started this 6 months ago
/triage accepted |
What type of PR is this?
/kind cleanup
What this PR does / why we need it:
Followup to #123529
Removes a lot of unnecessary logic from update-vendor.sh:
go work sync
cc @dims @thockin