Skip to content

Commit

Permalink
Merge pull request GoogleCloudPlatform#1323 from justinsb/no_more_gopath
Browse files Browse the repository at this point in the history
chore: Rework deepcopy generators to not require gopath
  • Loading branch information
google-oss-prow[bot] authored Jul 23, 2024
2 parents 9975a63 + 84babcf commit e29dd60
Show file tree
Hide file tree
Showing 1,525 changed files with 1,441 additions and 2,316 deletions.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,9 @@ generate:
# Don't run go generate on `pkg/clients/generated` in the normal development flow due to high latency.
# This path will be covered by `generate-go-client` target specifically.
go mod vendor -o temp-vendor # So we can load DCL resources
go generate $$(go list ./pkg/... ./cmd/... ./scripts/resource-autogen/... | grep -v ./pkg/clients/generated)
go generate ./pkg/dcl/schema/...
rm -rf temp-vendor
go generate ./pkg/apis/...
make fmt

# Build the docker images
Expand Down
2 changes: 0 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,6 @@ require (
k8s.io/apiextensions-apiserver v0.27.9
k8s.io/apimachinery v0.27.11
k8s.io/client-go v0.27.11
k8s.io/code-generator v0.27.9
k8s.io/gengo v0.0.0-20220902162205-c0856e24416d
k8s.io/klog/v2 v2.100.1
sigs.k8s.io/controller-runtime v0.15.2
sigs.k8s.io/controller-tools v0.6.2
Expand Down
4 changes: 0 additions & 4 deletions go.sum

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pkg/apis/apis.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// limitations under the License.

// Generate deepcopy for apis
//go:generate go run ../../scripts/deepcopy-gen/main.go -O zz_generated.deepcopy -i ./... -h ../../hack/boilerplate.go.txt
//go:generate go run k8s.io/code-generator/cmd/deepcopy-gen@v0.29.0 -O zz_generated.deepcopy -h ../../hack/boilerplate.go.txt -i github.com/GoogleCloudPlatform/k8s-config-connector/pkg/apis/... --trim-path-prefix github.com/GoogleCloudPlatform/k8s-config-connector/pkg/apis

// Package apis contains Kubernetes API groups.
package apis
Expand Down
Loading

0 comments on commit e29dd60

Please sign in to comment.