Skip to content

Commit

Permalink
Add a header to go.work
Browse files Browse the repository at this point in the history
  • Loading branch information
thockin committed Mar 2, 2024
1 parent 138f99b commit e2b96b2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions go.work
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// This is a generated file. Do not edit directly.

go 1.22.0

use (
Expand Down
6 changes: 6 additions & 0 deletions hack/update-go-workspace.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit e2b96b2

Please sign in to comment.