Skip to content

Commit 944694e

Browse files
wenyingdcursoragent
andcommitted
fix(deps): remove unnecessary indirect deps from go.mod
Run go mod tidy to clean up indirect dependencies that were incorrectly added during rebase conflict resolution (pprof, gomega, pkg/errors, golang.org/x/exp). Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent fc50f25 commit 944694e

3 files changed

Lines changed: 18 additions & 45 deletions

File tree

go.mod

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ require (
8484
github.com/google/btree v1.1.3 // indirect
8585
github.com/google/gnostic-models v0.7.0 // indirect
8686
github.com/google/go-cmp v0.7.0 // indirect
87-
github.com/google/pprof v0.0.0-20260115054156-294ebfa9ad83 // indirect
8887
github.com/gorilla/websocket v1.5.4-0.20250319132907-e064f32e3674 // indirect
8988
github.com/json-iterator/go v1.1.12 // indirect
9089
github.com/mattn/go-colorable v0.1.14 // indirect
@@ -95,8 +94,6 @@ require (
9594
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
9695
github.com/mxk/go-flowrate v0.0.0-20140419014527-cca7078d478f // indirect
9796
github.com/onsi/ginkgo/v2 v2.28.1 // indirect
98-
github.com/onsi/gomega v1.39.1 // indirect
99-
github.com/pkg/errors v0.9.1 // indirect
10097
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
10198
github.com/prometheus/client_model v0.6.2 // indirect
10299
github.com/prometheus/common v0.67.5 // indirect
@@ -107,7 +104,6 @@ require (
107104
go.uber.org/multierr v1.11.0 // indirect
108105
go.yaml.in/yaml/v2 v2.4.4 // indirect
109106
go.yaml.in/yaml/v3 v3.0.4 // indirect
110-
golang.org/x/exp v0.0.0-20230515195305-f3d0a9c9a5cc // indirect
111107
golang.org/x/mod v0.35.0 // indirect
112108
golang.org/x/oauth2 v0.36.0 // indirect
113109
golang.org/x/sys v0.43.0 // indirect

go.sum

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -169,25 +169,14 @@ github.com/vmware-tanzu/vm-operator/api v1.9.1-0.20260427183048-1a7a2f3398c7 h1:
169169
github.com/vmware-tanzu/vm-operator/api v1.9.1-0.20260427183048-1a7a2f3398c7/go.mod h1:nWTPpxfe4gHuuYuFcrs86+NMxfkqPk3a3IlvI8TCWak=
170170
github.com/vmware/go-vmware-nsxt v0.0.0-20230223012718-d31b8a1ca05e h1:Vu41Q0Pv3yMdd+tcDW6QeEUIK2L+9ZrPrq8NAMrKSLc=
171171
github.com/vmware/go-vmware-nsxt v0.0.0-20230223012718-d31b8a1ca05e/go.mod h1:aRq5pxwgdJpAuP97SCjX1+Db32z/b0dggQ07FDF+fqE=
172-
github.com/vmware/govmomi v0.27.4 h1:5kY8TAkhB20lsjzrjE073eRb8+HixBI29PVMG5lxq6I=
173-
github.com/vmware/govmomi v0.27.4/go.mod h1:daTuJEcQosNMXYJOeku0qdBJP9SOLLWB3Mqz8THtv6o=
174172
github.com/vmware/govmomi v0.53.1 h1:6cNudrmbkYTp2onqSLTIsPwP2zj6Fkfb4ymNn7GO5dk=
175173
github.com/vmware/govmomi v0.53.1/go.mod h1:EWfuzPfxT5NV+aS2we02SLFdhvJkgeY7t7+TszgBSMY=
176-
github.com/vmware/vmw-guestinfo v0.0.0-20170707015358-25eff159a728/go.mod h1:x9oS4Wk2s2u4tS29nEaDLdzvuHdB19CvSGJjPgkZJNk=
177-
github.com/vmware/vsphere-automation-sdk-go/lib v0.7.0 h1:pT+oqJ8FD5eUBQkl+e7LZwwtbwPvW5kDyyGXvt66gOM=
178-
github.com/vmware/vsphere-automation-sdk-go/lib v0.7.0/go.mod h1:f3+6YVZpNcK2pYyiQ94BoHWmjMj9BnYav0vNFuTiDVM=
179174
github.com/vmware/vsphere-automation-sdk-go/lib v0.8.0 h1:u1SXOTM6D4Ygb3jeidj2RdFf2X2Sq+yu53SbPzyf23g=
180175
github.com/vmware/vsphere-automation-sdk-go/lib v0.8.0/go.mod h1:8d5JTwjpM/Z03n/IZb0fwmXkJNWvWwuLXBqoakqYio4=
181-
github.com/vmware/vsphere-automation-sdk-go/runtime v0.7.0 h1:pSBxa9Agh6bgW8Hr0A1eQxuwnxGTnuAVox8iQb023hg=
182-
github.com/vmware/vsphere-automation-sdk-go/runtime v0.7.0/go.mod h1:qdzEFm2iK3dvlmm99EYYNxs70HbzuiHyENFD24Ps8fQ=
183176
github.com/vmware/vsphere-automation-sdk-go/runtime v0.8.0 h1:KnDIX9LY0nru7iMQTg0sy9vChhyorPo5OdASM2MaAcI=
184177
github.com/vmware/vsphere-automation-sdk-go/runtime v0.8.0/go.mod h1:DzLetYAmw1+vj7bqElRWEpuy40WYE/woL3alsymYa/c=
185-
github.com/vmware/vsphere-automation-sdk-go/services/nsxt v0.0.0-20260310075027-d32fca6a7b22 h1:yDMJj+UG0u9aDdC0Q1byw8QEjfPd8gm7QKB2mo2oU1I=
186-
github.com/vmware/vsphere-automation-sdk-go/services/nsxt v0.0.0-20260310075027-d32fca6a7b22/go.mod h1:C3JVOHRVLrGBQ8kTWAiGYlRz5UQC5qAcTdt3tvA+5P0=
187178
github.com/vmware/vsphere-automation-sdk-go/services/nsxt v0.0.0-20260429104618-0417fff4645f h1:giI6VdAbSQ40fwpRjLow2S9iWNJ3ywJAST61WJ9ZxZU=
188179
github.com/vmware/vsphere-automation-sdk-go/services/nsxt v0.0.0-20260429104618-0417fff4645f/go.mod h1:C3JVOHRVLrGBQ8kTWAiGYlRz5UQC5qAcTdt3tvA+5P0=
189-
github.com/vmware/vsphere-automation-sdk-go/services/nsxt-mp v0.0.0-20260310075027-d32fca6a7b22 h1:SKbUc9p+LFUwtPvjk9WCwrjstN6NpewgPx4eWSIZq+k=
190-
github.com/vmware/vsphere-automation-sdk-go/services/nsxt-mp v0.0.0-20260310075027-d32fca6a7b22/go.mod h1:ugk9I4YM62SSAox57l5NAVBCRIkPQ1RNLb3URxyTADc=
191180
github.com/vmware/vsphere-automation-sdk-go/services/nsxt-mp v0.0.0-20260429104618-0417fff4645f h1:Y3Nn/DkcjEZFBGAoXRPj6r8Q4Av8ZL2mwXdgL1hpETk=
192181
github.com/vmware/vsphere-automation-sdk-go/services/nsxt-mp v0.0.0-20260429104618-0417fff4645f/go.mod h1:ugk9I4YM62SSAox57l5NAVBCRIkPQ1RNLb3URxyTADc=
193182
github.com/x448/float16 v0.8.4 h1:qLwI1I70+NjRFUR3zs1JPUCgaCXSh3SW62uAKT1mSBM=
@@ -302,28 +291,16 @@ k8s.io/apimachinery v0.35.1 h1:yxO6gV555P1YV0SANtnTjXYfiivaTPvCTKX6w6qdDsU=
302291
k8s.io/apimachinery v0.35.1/go.mod h1:jQCgFZFR1F4Ik7hvr2g84RTJSZegBc8yHgFWKn//hns=
303292
k8s.io/client-go v0.35.1 h1:+eSfZHwuo/I19PaSxqumjqZ9l5XiTEKbIaJ+j1wLcLM=
304293
k8s.io/client-go v0.35.1/go.mod h1:1p1KxDt3a0ruRfc/pG4qT/3oHmUj1AhSHEcxNSGg+OA=
305-
k8s.io/code-generator v0.31.0 h1:w607nrMi1KeDKB3/F/J4lIoOgAwc+gV9ZKew4XRfMp8=
306-
k8s.io/code-generator v0.31.0/go.mod h1:84y4w3es8rOJOUUP1rLsIiGlO1JuEaPFXQPA9e/K6U0=
307294
k8s.io/code-generator v0.35.1 h1:yLKR2la7Z9cWT5qmk67ayx8xXLM4RRKQMnC8YPvTWRI=
308295
k8s.io/code-generator v0.35.1/go.mod h1:F2Fhm7aA69tC/VkMXLDokdovltXEF026Tb9yfQXQWKg=
309-
k8s.io/gengo/v2 v2.0.0-20250604051438-85fd79dbfd9f h1:SLb+kxmzfA87x4E4brQzB33VBbT2+x7Zq9ROIHmGn9Q=
310-
k8s.io/gengo/v2 v2.0.0-20250604051438-85fd79dbfd9f/go.mod h1:EJykeLsmFC60UQbYJezXkEsG2FLrt0GPNkU5iK5GWxU=
311296
k8s.io/gengo/v2 v2.0.0-20260408192533-25e2208e0dc3 h1:3L6PNkMLXkU/pz3jWzaaIUz0Rs2V9h+5O51AeRC7poc=
312297
k8s.io/gengo/v2 v2.0.0-20260408192533-25e2208e0dc3/go.mod h1:yvyl3l9E+UxlqOMUULdKTAYB0rEhsmjr7+2Vb/1pCSo=
313-
k8s.io/klog/v2 v2.130.1 h1:n9Xl7H1Xvksem4KFG4PYbdQCQxqc/tTUyrgXaOhHSzk=
314-
k8s.io/klog/v2 v2.130.1/go.mod h1:3Jpz1GvMt720eyJH1ckRHK1EDfpxISzJ7I9OYgaDtPE=
315298
k8s.io/klog/v2 v2.140.0 h1:Tf+J3AH7xnUzZyVVXhTgGhEKnFqye14aadWv7bzXdzc=
316299
k8s.io/klog/v2 v2.140.0/go.mod h1:o+/RWfJ6PwpnFn7OyAG3QnO47BFsymfEfrz6XyYSSp0=
317-
k8s.io/kube-openapi v0.0.0-20250910181357-589584f1c912 h1:Y3gxNAuB0OBLImH611+UDZcmKS3g6CthxToOb37KgwE=
318-
k8s.io/kube-openapi v0.0.0-20250910181357-589584f1c912/go.mod h1:kdmbQkyfwUagLfXIad1y2TdrjPFWp2Q89B3qkRwf/pQ=
319300
k8s.io/kube-openapi v0.0.0-20260414162039-ec9c827d403f h1:4Qiq0YAoQATdgmHALJWz9rJ4fj20pB3xebpB4CFNhYM=
320301
k8s.io/kube-openapi v0.0.0-20260414162039-ec9c827d403f/go.mod h1:uGBT7iTA6c6MvqUvSXIaYZo9ukscABYi2btjhvgKGZ0=
321-
k8s.io/utils v0.0.0-20260108192941-914a6e750570 h1:JT4W8lsdrGENg9W+YwwdLJxklIuKWdRm+BC+xt33FOY=
322-
k8s.io/utils v0.0.0-20260108192941-914a6e750570/go.mod h1:xDxuJ0whA3d0I4mf/C4ppKHxXynQ+fxnkmQH0vTHnuk=
323302
k8s.io/utils v0.0.0-20260210185600-b8788abfbbc2 h1:AZYQSJemyQB5eRxqcPky+/7EdBj0xi3g0ZcxxJ7vbWU=
324303
k8s.io/utils v0.0.0-20260210185600-b8788abfbbc2/go.mod h1:xDxuJ0whA3d0I4mf/C4ppKHxXynQ+fxnkmQH0vTHnuk=
325-
sigs.k8s.io/controller-runtime v0.19.0 h1:nWVM7aq+Il2ABxwiCizrVDSlmDcshi9llbaFbC0ji/Q=
326-
sigs.k8s.io/controller-runtime v0.19.0/go.mod h1:iRmWllt8IlaLjvTTDLhRBXIEtkCK6hwVBJJsYS9Ajf4=
327304
sigs.k8s.io/controller-runtime v0.23.3 h1:VjB/vhoPoA9l1kEKZHBMnQF33tdCLQKJtydy4iqwZ80=
328305
sigs.k8s.io/controller-runtime v0.23.3/go.mod h1:B6COOxKptp+YaUT5q4l6LqUJTRpizbgf9KSRNdQGns0=
329306
sigs.k8s.io/gateway-api v1.5.1 h1:RqVRIlkhLhUO8wOHKTLnTJA6o/1un4po4/6M1nRzdd0=

pkg/nsx/services/dns/recordservice_test.go

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -227,17 +227,17 @@ func TestValidateEndpointsByZone_table(t *testing.T) {
227227
ncWithoutDNSZones.Spec.DNSZones = nil
228228

229229
tests := []struct {
230-
name string
231-
nc *v1alpha1.VPCNetworkConfiguration
232-
vpcErr error
233-
buildOwner func(ns string) *ResourceRef // nil → tableOwner(ns)
234-
ns string
235-
eps []*extdns.Endpoint
236-
wantZone string
237-
errSub string
238-
wantZoneValErr bool // error must be *DNSZoneValidationError
230+
name string
231+
nc *v1alpha1.VPCNetworkConfiguration
232+
vpcErr error
233+
buildOwner func(ns string) *ResourceRef // nil → tableOwner(ns)
234+
ns string
235+
eps []*extdns.Endpoint
236+
wantZone string
237+
errSub string
238+
wantZoneValErr bool // error must be *DNSZoneValidationError
239239
wantAllowedOnErr map[string]string // non-nil: allowedZones must equal this on error
240-
wantN *int // when non-nil, assert len(rows)==*wantN instead of len(eps)
240+
wantN *int // when non-nil, assert len(rows)==*wantN instead of len(eps)
241241
}{
242242
{
243243
name: "happy_path",
@@ -246,9 +246,9 @@ func TestValidateEndpointsByZone_table(t *testing.T) {
246246
wantN: intPtr(1),
247247
},
248248
{
249-
name: "no_DNS_zones_in_VPC_spec",
250-
nc: ncWithoutDNSZones,
251-
ns: "n", eps: []*extdns.Endpoint{ep}, errSub: "no DNS zones are permitted for the namespace",
249+
name: "no_DNS_zones_in_VPC_spec",
250+
nc: ncWithoutDNSZones,
251+
ns: "n", eps: []*extdns.Endpoint{ep}, errSub: "no DNS zones are permitted for the namespace",
252252
wantZoneValErr: true,
253253
},
254254
{
@@ -281,12 +281,12 @@ func TestValidateEndpointsByZone_table(t *testing.T) {
281281
buildOwner: func(ns string) *ResourceRef {
282282
return &ResourceRef{Kind: "UnknownKind", Object: &metav1.ObjectMeta{Namespace: ns, Name: "x"}}
283283
},
284-
ns: "tenant",
285-
eps: []*extdns.Endpoint{ep},
286-
errSub: "unsupported resource kind",
287-
wantZoneValErr: true,
284+
ns: "tenant",
285+
eps: []*extdns.Endpoint{ep},
286+
errSub: "unsupported resource kind",
287+
wantZoneValErr: true,
288288
wantAllowedOnErr: map[string]string{testDNSZonePathT: "example.com"},
289-
wantN: intPtr(0),
289+
wantN: intPtr(0),
290290
},
291291
{
292292
// hostname does not lie under any allowed zone → must be *DNSZoneValidationError

0 commit comments

Comments
 (0)