-
Notifications
You must be signed in to change notification settings - Fork 41.5k
Revert "fix shellcheck failures of hack/verify-no-vendor-cycles.sh" #77841
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
This reverts commit e25e5a6.
/priority critical-urgent |
/cc @fejta @davidz627 |
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.
/lgtm
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: BenTheElder, 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 |
/kind bug |
lol amazing. Thanks for the fix :) |
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.
reverse reviewed for any future attempt at patching this
staging_repos=() | ||
while IFS= read -r repo; do | ||
staging_repos+=( "${repo}" ) | ||
done < <(ls "${KUBE_ROOT}/staging/src/k8s.io/") |
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.
for the future: this should be using find instead of ls
echo "Package ${i} has a cyclic dependency on staging repository packages: ${deps_on_staging}" | ||
failed=true | ||
fi | ||
done < <(find vendor/ -type d) |
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 should be using -print0
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.
|
||
failed=false | ||
while IFS= read -r -d '' i; do | ||
deps=$(go list -f '{{range .Deps}}{{.}}{{"\n"}}{{end}}' ./"$i" 2> /dev/null || echo "") |
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.
should be quoting the whole string
set -o nounset | ||
set -o pipefail | ||
|
||
KUBE_ROOT=$(dirname "${BASH_SOURCE[0]}")/.. |
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 change was right
This reverts commit e25e5a6.
What type of PR is this?
/kind bug
What this PR does / why we need it:
Which issue(s) this PR fixes:
#77055 made changes that rendered the
verify-no-vendor-cycles.sh
check ineffective (it passed immediately on #77837 which introduced vendor cycles)Does this PR introduce a user-facing change?: