We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 546f7c3 commit 6f2842cCopy full SHA for 6f2842c
hack/update-go-workspace.sh
@@ -32,17 +32,7 @@ kube::golang::setup_env
32
33
cd "${KUBE_ROOT}"
34
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
+# Ensure all modules are included in go.work
46
go work edit -use .
47
git ls-files -z ':(glob)./staging/src/k8s.io/*/go.mod' \
48
| xargs -0 -n1 dirname -z \
0 commit comments