mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-07 03:03:59 +00:00
Merge pull request #123846 from carlory/fix-update-go-workspace
Fix the dirname command in macOS does not have a -z option
This commit is contained in:
commit
52e857756b
@ -35,6 +35,7 @@ cd "${KUBE_ROOT}"
|
||||
# Ensure all modules are included in go.work
|
||||
go work edit -use .
|
||||
git ls-files -z ':(glob)./staging/src/k8s.io/*/go.mod' \
|
||||
| xargs -0 -n1 dirname -z \
|
||||
| xargs -0 -n1 dirname \
|
||||
| tr '\n' '\0' \
|
||||
| xargs -0 -n1 go work edit -use
|
||||
go mod download # generate go.work.sum
|
||||
|
Loading…
Reference in New Issue
Block a user