Skip to content

Commit

Permalink
golang: Enable type alias again for go 1.23
Browse files Browse the repository at this point in the history
All files are re-generated again as there is change in generation tools.

Relates: kubernetes/kubernetes#127271
Relates: cilium/deepequal-gen#7
Relates: kubernetes-sigs/controller-tools#1061
Relates: 1d9d51f
Signed-off-by: Tam Mach <[email protected]>
  • Loading branch information
sayboras committed Nov 28, 2024
1 parent 858bac0 commit 0d6d620
Show file tree
Hide file tree
Showing 1,585 changed files with 48,545 additions and 62,156 deletions.
6 changes: 1 addition & 5 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
Expand Up @@ -231,11 +231,7 @@
// https://github.com/google/go-licenses/issues/205
"github.com/google/go-licenses",
// We update this dependency manually together with conformance test changes
"sigs.k8s.io/gateway-api",
// The PR https://github.com/cilium/deepequal-gen/pull/7 contains breaking changes,
// which requires manual intervention.
// Remove this entry once the PR https://github.com/cilium/cilium/pull/35406 is merged.
"github.com/cilium/deepequal-gen"
"sigs.k8s.io/gateway-api"
],
"matchPackagePatterns": [
// We can't update these libraries until github.com/shoenig/go-m1cpu
Expand Down
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -305,10 +305,10 @@ generate-hubble-api: api/v1/flow/flow.proto api/v1/peer/peer.proto api/v1/observ

define generate_deepequal
$(GO) run github.com/cilium/deepequal-gen \
--input-dirs $(subst $(space),$(comma),$(1)) \
--go-header-file "$$PWD/hack/custom-boilerplate.go.txt" \
--output-file-base zz_generated.deepequal \
--output-base $(2)
--output-file zz_generated.deepequal.go \
--output-base $(2) \
$(1)
endef

define generate_k8s_protobuf
Expand Down
5 changes: 0 additions & 5 deletions Makefile.defs
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,6 @@ GO_BUILD_LDFLAGS ?=
# go build/test -tags values
GO_TAGS_FLAGS += osusergo

# Keep the Go <=1.22 semantics for parsing type aliases.
# This is needed for code generation (k8s protobuf, deep*) until 'gengo' has been fixed.
GODEBUG += gotypesalias=0
export GODEBUG

# This is declared here as it is needed to change the covermode depending on if
# RACE is specified.
GOTEST_COVER_OPTS =
Expand Down
41 changes: 19 additions & 22 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ require (
github.com/blang/semver/v4 v4.0.0
github.com/cilium/charts v0.0.0-20241120095330-9c4cd49dd9e6
github.com/cilium/coverbee v0.3.3-0.20240723084546-664438750fce
github.com/cilium/deepequal-gen v0.0.0-20231116094812-0d6c075c335f
github.com/cilium/deepequal-gen v0.0.0-20241016021505-f57df2fe2e62
github.com/cilium/dns v1.1.51-0.20240603182237-af788769786a
github.com/cilium/ebpf v0.16.0
github.com/cilium/endpointslice-controller v0.0.0-20240409203012-75cb5d61db1b
Expand Down Expand Up @@ -71,7 +71,7 @@ require (
github.com/mdlayher/arp v0.0.0-20220221190821-c37aaafac7f9
github.com/mdlayher/ethernet v0.0.0-20220221185849-529eae5b6118
github.com/onsi/ginkgo v1.16.5
github.com/onsi/gomega v1.34.2
github.com/onsi/gomega v1.35.1
github.com/osrg/gobgp/v3 v3.31.0
github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2
Expand Down Expand Up @@ -119,14 +119,14 @@ require (
gopkg.in/ini.v1 v1.67.0
gopkg.in/yaml.v3 v3.0.1
helm.sh/helm/v3 v3.16.3
k8s.io/api v0.31.3
k8s.io/apiextensions-apiserver v0.31.3
k8s.io/apimachinery v0.31.3
k8s.io/cli-runtime v0.31.3
k8s.io/client-go v0.31.3
k8s.io/code-generator v0.31.3
k8s.io/component-base v0.31.3
k8s.io/endpointslice v0.31.3
k8s.io/api v0.32.0-rc.0
k8s.io/apiextensions-apiserver v0.32.0-rc.0
k8s.io/apimachinery v0.32.0-rc.0
k8s.io/cli-runtime v0.32.0-rc.0
k8s.io/client-go v0.32.0-rc.0
k8s.io/code-generator v0.32.0-rc.0
k8s.io/component-base v0.32.0-rc.0
k8s.io/endpointslice v0.32.0-rc.0
k8s.io/klog/v2 v2.130.1
k8s.io/kubectl v0.31.3
k8s.io/utils v0.0.0-20241104163129-6fe5fd82f078
Expand Down Expand Up @@ -219,12 +219,11 @@ require (
github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 // indirect
github.com/gorilla/websocket v1.5.1 // indirect
github.com/gosuri/uitable v0.0.4 // indirect
github.com/gregjones/httpcache v0.0.0-20180305231024-9cad4c3443a7 // indirect
github.com/gregjones/httpcache v0.0.0-20190611155906-901d90724c79 // indirect
github.com/hashicorp/errwrap v1.1.0 // indirect
github.com/hashicorp/go-multierror v1.1.1 // indirect
github.com/hashicorp/hcl v1.0.1-vault-5 // indirect
github.com/huandu/xstrings v1.5.0 // indirect
github.com/imdario/mergo v0.3.16 // indirect
github.com/inconshreveable/mousetrap v1.1.0 // indirect
github.com/ishidawataru/sctp v0.0.0-20230406120618-7ff4192f6ff2 // indirect
github.com/jmespath/go-jmespath v0.4.0 // indirect
Expand Down Expand Up @@ -257,7 +256,7 @@ require (
github.com/mitchellh/reflectwalk v1.0.2 // indirect
github.com/moby/docker-image-spec v1.3.1 // indirect
github.com/moby/locker v1.0.1 // indirect
github.com/moby/spdystream v0.4.0 // indirect
github.com/moby/spdystream v0.5.0 // indirect
github.com/moby/sys/userns v0.1.0 // indirect
github.com/moby/term v0.5.0 // indirect
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
Expand Down Expand Up @@ -303,7 +302,6 @@ require (
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.22.0 // indirect
go.opentelemetry.io/otel/metric v1.31.0 // indirect
go.opentelemetry.io/proto/otlp v1.3.1 // indirect
go.starlark.net v0.0.0-20230525235612-a134d8f9ddca // indirect
go.uber.org/atomic v1.11.0 // indirect
go.uber.org/dig v1.17.1 // indirect
go.uber.org/multierr v1.11.0 // indirect
Expand All @@ -318,15 +316,14 @@ require (
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
gotest.tools/v3 v3.5.0 // indirect
k8s.io/apiserver v0.31.3 // indirect
k8s.io/gengo v0.0.0-20230829151522-9cce18d56c01 // indirect
k8s.io/gengo/v2 v2.0.0-20240228010128-51d4e06bde70 // indirect
k8s.io/kube-openapi v0.0.0-20240423202451-8948a665c108 // indirect
k8s.io/apiserver v0.32.0-rc.0 // indirect
k8s.io/gengo/v2 v2.0.0-20240911193312-2b36238f13e9 // indirect
k8s.io/kube-openapi v0.0.0-20241105132330-32ad38e42d3f // indirect
oras.land/oras-go v1.2.5 // indirect
sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect
sigs.k8s.io/kustomize/api v0.17.2 // indirect
sigs.k8s.io/kustomize/kyaml v0.17.1 // indirect
sigs.k8s.io/structured-merge-diff/v4 v4.4.1 // indirect
sigs.k8s.io/json v0.0.0-20241010143419-9aa6b5e7a4b3 // indirect
sigs.k8s.io/kustomize/api v0.18.0 // indirect
sigs.k8s.io/kustomize/kyaml v0.18.1 // indirect
sigs.k8s.io/structured-merge-diff/v4 v4.4.2 // indirect
)

replace (
Expand Down
Loading

0 comments on commit 0d6d620

Please sign in to comment.