sigstore / policy-controller

Sigstore Policy Controller - an admission controller that can be used to enforce policy on a Kubernetes cluster based on verifiable supply-chain metadata from cosign
Other
123 stars 55 forks source link

Update codegen is broken when updating the licenses #1523

Closed hectorj2f closed 3 months ago

hectorj2f commented 3 months ago

We are getting errors on CI when updating the generated code and third party libraries. In particular, we get the following error:

--- Updating licenses
go: downloading github.com/google/go-licenses v1.6.0
go: downloading github.com/google/licenseclassifier v0.0.0-20210722185704-3043a050f148
go: downloading github.com/otiai10/copy v1.6.0
go: downloading gopkg.in/src-d/go-git.v4 v4.13.1
go: downloading golang.org/x/tools v0.5.0
go: downloading k8s.io/klog/v2 v2.80.1
go: downloading github.com/spf13/cobra v1.6.0
go: downloading golang.org/x/text v0.6.0
go: downloading go.opencensus.io v0.23.0
go: downloading golang.org/x/net v0.5.0
go: downloading golang.org/x/mod v0.7.0
go: downloading github.com/go-logr/logr v1.2.0
go: downloading golang.org/x/crypto v0.1.0
go: downloading github.com/sergi/go-diff v1.2.0
go: downloading gopkg.in/src-d/go-billy.v4 v4.3.2
go: downloading golang.org/x/sys v0.4.0
go: downloading github.com/emirpasic/gods v1.12.0
go: downloading github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99
go: downloading github.com/src-d/gcfg v1.4.0
go: downloading github.com/kevinburke/ssh_config v0.0.0-20190725054713-01f96b0aa0cd
go: downloading github.com/xanzy/ssh-agent v0.2.1
go: downloading gopkg.in/warnings.v0 v0.1.2
E0701 11:05:59.421450   80304 library.go:117] Package bytes does not have module info. Non go modules projects are no longer supported. For feedback, refer to https://github.com/google/go-licenses/issues/128.
E0701 11:05:59.421572   80304 library.go:117] Package fmt does not have module info. Non go modules projects are no longer supported. For feedback, refer to https://github.com/google/go-licenses/issues/128.
E0701 11:05:59.421576   80304 library.go:117] Package go/ast does not have module info. Non go modules projects are no longer supported. For feedback, refer to https://github.com/google/go-licenses/issues/128.
hectorj2f commented 3 months ago

Fixed now in main!