Skip to content

Commit

Permalink
Merge pull request kubernetes#123759 from liggitt/update-workspace
Browse files Browse the repository at this point in the history
Avoid clearing go version in go.work update script
  • Loading branch information
k8s-ci-robot committed Mar 6, 2024
2 parents a5f5f44 + 6f2842c commit 5f2c9e7
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 5f2c9e7

Please sign in to comment.