Skip to content

Commit

Permalink
update go mod vendor to go work vendor
Browse files Browse the repository at this point in the history
Fixes:

```
go: 'go mod vendor' cannot be run in workspace mode. Run 'go work vendor' to vendor the workspace or set 'GOWORK=off' to exit workspace mode.
```

Kubernetes project has moved to using go workspaces
kubernetes/kubernetes#123529 

Signed-off-by: Priyanka Saggu <priyankasaggu11929@gmail.com>
  • Loading branch information
Priyankasaggu11929 committed Jun 8, 2024
1 parent e6472a9 commit 0836d31
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion projects/kubernetes/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@ printf "package main\nimport ( \n _ \"github.com/AdamKorcz/go-118-fuzz-build/tes
cat register.go

go mod tidy
go mod vendor
# go mod vendor
go work vendor

# Delete broken fuzzer in 3rd-party dependency.
find $SRC/kubernetes/vendor/github.com/cilium/ebpf/internal/btf -name "fuzz.go" -exec rm -rf {} \;
Expand Down

0 comments on commit 0836d31

Please sign in to comment.