Skip to content

Commit a418e46

Browse files
committed
go.mod: Remove deprecated replace directives
These replaces were needed at some point to force a bump to a lib version with CVE fixes but we have since moved way past the pinned version. We should drop them before we run into problems from having deps pinned to versions that are too old. For example, I've seen PRs with the following diff: ``` golang.org/x/net v0.23.0 => golang.org/x/net v0.5.0 ``` which is not really what we want.
1 parent 65b89ed commit a418e46

File tree

2 files changed

+231
-34
lines changed

2 files changed

+231
-34
lines changed

go.mod

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -304,41 +304,19 @@ replace (
304304

305305
replace sigs.k8s.io/cluster-api-provider-ibmcloud => sigs.k8s.io/cluster-api-provider-ibmcloud v0.8.0-alpha.0.0.20240424062805-188d9e99702c
306306

307-
replace sigs.k8s.io/controller-runtime => sigs.k8s.io/controller-runtime v0.16.1-0.20231024080022-f1c5dd3851ce
308-
309307
// Needed so that the InstallConfig CRD can be created. Later versions of controller-gen balk at using IPNet as a field.
310308
replace sigs.k8s.io/controller-tools => sigs.k8s.io/controller-tools v0.3.1-0.20200617211605-651903477185
311309

312-
replace github.com/mattn/go-sqlite3 => github.com/mattn/go-sqlite3 v1.10.0
313-
314310
replace github.com/openshift/assisted-service/api => github.com/openshift/assisted-service/api v0.0.0-20230831114549-1922eda29cf8
315311

316312
replace github.com/openshift/assisted-service/client => github.com/openshift/assisted-service/client v0.0.0-20230831114549-1922eda29cf8
317313

318314
replace github.com/openshift/assisted-service/models => github.com/openshift/assisted-service/models v0.0.0-20230831114549-1922eda29cf8
319315

320-
// https://bugzilla.redhat.com/show_bug.cgi?id=2064702
321-
replace golang.org/x/crypto => golang.org/x/crypto v0.0.0-20220315160706-3147a52a75dd
322-
323-
// https://bugzilla.redhat.com/show_bug.cgi?id=2100495
324-
replace golang.org/x/text => golang.org/x/text v0.3.7
325-
326-
// https://issues.redhat.com/browse/OCPBUGS-5324
327-
replace gopkg.in/yaml.v2 => gopkg.in/yaml.v2 v2.4.0
328-
329-
// https://issues.redhat.com/browse/OCPBUGS-5667
330-
replace github.com/Masterminds/goutils => github.com/Masterminds/goutils v1.1.1
331-
332-
// https://issues.redhat.com/browse/OCPBUGS-6422
333-
replace golang.org/x/net => golang.org/x/net v0.5.0
334-
335316
// https://issues.redhat.com/browse/OCPBUGS-8119
336317
// https://issues.redhat.com/browse/OCPBUGS-27507
337318
replace github.com/containerd/containerd => github.com/containerd/containerd v1.6.26
338319

339-
// https://issues.redhat.com/browse/OCPBUGS-8540
340-
replace go.mongodb.org/mongo-driver => go.mongodb.org/mongo-driver v1.11.2
341-
342320
// https://issues.redhat.com/browse/OCPBUGS-30642
343321
replace golang.org/x/oauth2 => golang.org/x/oauth2 v0.15.0
344322

0 commit comments

Comments
 (0)