Skip to content

Commit 6f2842c

Browse files
committed
Avoid clearing go version in go.work update script
1 parent 546f7c3 commit 6f2842c

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

hack/update-go-workspace.sh

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,7 @@ kube::golang::setup_env
3232

3333
cd "${KUBE_ROOT}"
3434

35-
# Avoid issues and remove the workspace files.
36-
rm -f go.work go.work.sum
37-
38-
# Generate the workspace.
39-
go work init
40-
(
41-
echo "// This is a generated file. Do not edit directly."
42-
echo
43-
cat go.work
44-
) > .go.work.tmp
45-
mv .go.work.tmp go.work
35+
# Ensure all modules are included in go.work
4636
go work edit -use .
4737
git ls-files -z ':(glob)./staging/src/k8s.io/*/go.mod' \
4838
| xargs -0 -n1 dirname -z \

0 commit comments

Comments
 (0)