Closed as not planned
Description
Which area/kind this issue is related to?
/area api
Issue Description
As seen in the #1345 after the upgrade to go 1.19
the generator
module is now using the -mod=mod
while having a fixed version of the sigs.k8s.io/controller-tools/cmd/helpgen
package. For example it generates the code through:
go:generate go run -mod=mod sigs.k8s.io/controller-tools/cmd/helpgen@v0.6.2
generate:headerFile=../header.go.txt,year=2020 paths=.
As a result, this update skips the usage of vendor
directory for this dependency. As part of this issue we should investigate any potential workarounds on how we can generate the code while using only the vendor
directory.
Acceptance Criteria
- Investigate any potential workaround on using
go generate
with the usage only ofvendor
dir.