Add a header to go.work

This commit is contained in:
Tim Hockin 2024-03-01 15:31:37 -08:00
parent 138f99b41a
commit e2b96b2566
No known key found for this signature in database
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,5 @@
// This is a generated file. Do not edit directly.
go 1.22.0
use (

View File

@ -37,6 +37,12 @@ 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
go work edit -use .
git ls-files -z ':(glob)./staging/src/k8s.io/*/go.mod' \
| xargs -0 -n1 dirname -z \