Skip to content

Commit

Permalink
Avoid clearing go version in go.work update script
Browse files Browse the repository at this point in the history
  • Loading branch information
liggitt committed Mar 6, 2024
1 parent 546f7c3 commit 6f2842c
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions hack/update-go-workspace.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,7 @@ kube::golang::setup_env

cd "${KUBE_ROOT}"

# Avoid issues and remove the workspace files.
rm -f go.work go.work.sum

# Generate the workspace.
go work init
(
echo "// This is a generated file. Do not edit directly."
echo
cat go.work
) > .go.work.tmp
mv .go.work.tmp go.work
# 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 \
Expand Down

0 comments on commit 6f2842c

Please sign in to comment.