Skip to content

Commit

Permalink
Fix the dirname command in macOS does not have a -z option
Browse files Browse the repository at this point in the history
  • Loading branch information
carlory committed Mar 10, 2024
1 parent 8f80e01 commit 56da06b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hack/update-go-workspace.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 56da06b

Please sign in to comment.