Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
94 changes: 47 additions & 47 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,23 @@ module github.com/openshift/ocm-agent-operator
go 1.26.0

require (
github.com/go-logr/logr v1.4.3
github.com/go-logr/logr v1.4.4
github.com/golang/mock v1.6.0
github.com/onsi/ginkgo v1.16.5
github.com/onsi/ginkgo/v2 v2.32.0
github.com/onsi/gomega v1.42.1
github.com/onsi/ginkgo/v2 v2.32.1
github.com/onsi/gomega v1.43.0
github.com/openshift/api v0.0.0-20260317095243-5c75e62da3e7
github.com/openshift/operator-custom-metrics v0.5.1
github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring v0.67.1
github.com/prometheus/client_golang v1.23.2
github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring v0.93.1

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[medium] major-version-jump-risk

prometheus-operator/pkg/apis/monitoring is bumped from v0.67.1 to v0.93.1, a jump of 26 minor versions. As a pre-v1.0 library, breaking API changes are permitted without semver guarantees. The critical go.mod syntax error prevents verifying whether the codebase compiles against the new version.

Suggested fix: After fixing the replace directive syntax, run go build ./... and make go-test to confirm compatibility with the new prometheus-operator version.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[low] major-version-jump-risk

prometheus-operator/pkg/apis/monitoring is bumped from v0.67.1 to v0.93.1, a jump of 26 minor versions. As a pre-v1.0 library, breaking API changes are permitted without semver guarantees. The codebase imports monitoring/v1 in 5 Go source files. Compatibility cannot be verified until the critical go.mod syntax error is fixed.

Suggested fix: After fixing the replace directive syntax, run go build ./... and make go-test to confirm compatibility with the new prometheus-operator version.

github.com/prometheus/client_golang v1.24.1
github.com/sykesm/zap-logfmt v0.0.4
go.uber.org/zap v1.28.0
golang.org/x/net v0.56.0 // indirect
k8s.io/api v0.36.0
k8s.io/apimachinery v0.36.0
k8s.io/client-go v0.36.0
golang.org/x/net v0.58.0 // indirect
k8s.io/api v0.37.0
k8s.io/apimachinery v0.37.0
k8s.io/client-go v0.37.0
k8s.io/kube-openapi v0.0.0-20260427204847-8949caaa1199
sigs.k8s.io/controller-runtime v0.23.3
sigs.k8s.io/controller-runtime v0.25.0
sigs.k8s.io/controller-tools v0.21.0
sigs.k8s.io/e2e-framework v0.7.0
)
Expand All @@ -28,34 +28,34 @@ require go.uber.org/mock v0.6.0

require (
github.com/Masterminds/semver/v3 v3.5.0 // indirect
github.com/go-openapi/swag/cmdutils v0.27.0 // indirect
github.com/go-openapi/swag/conv v0.27.0 // indirect
github.com/go-openapi/swag/fileutils v0.27.0 // indirect
github.com/go-openapi/swag/jsonutils v0.27.0 // indirect
github.com/go-openapi/swag/loading v0.27.0 // indirect
github.com/go-openapi/swag/mangling v0.27.0 // indirect
github.com/go-openapi/swag/netutils v0.27.0 // indirect
github.com/go-openapi/swag/stringutils v0.27.0 // indirect
github.com/go-openapi/swag/typeutils v0.27.0 // indirect
github.com/go-openapi/swag/yamlutils v0.27.0 // indirect
github.com/go-openapi/swag/cmdutils v0.29.2 // indirect
github.com/go-openapi/swag/conv v0.29.2 // indirect
github.com/go-openapi/swag/fileutils v0.29.2 // indirect
github.com/go-openapi/swag/jsonutils v0.29.2 // indirect
github.com/go-openapi/swag/loading v0.29.2 // indirect
github.com/go-openapi/swag/mangling v0.29.2 // indirect
github.com/go-openapi/swag/netutils v0.29.2 // indirect
github.com/go-openapi/swag/stringutils v0.29.2 // indirect
github.com/go-openapi/swag/typeutils v0.29.2 // indirect
github.com/go-openapi/swag/yamlutils v0.29.2 // indirect
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
go.yaml.in/yaml/v2 v2.4.4 // indirect
go.yaml.in/yaml/v3 v3.0.4 // indirect
go.yaml.in/yaml/v3 v3.0.5 // indirect
gopkg.in/evanphx/json-patch.v4 v4.13.0 // indirect
k8s.io/code-generator v0.36.0 // indirect
sigs.k8s.io/structured-merge-diff/v6 v6.4.0 // indirect
k8s.io/code-generator v0.37.0 // indirect
sigs.k8s.io/structured-merge-diff/v6 v6.4.2 // indirect
)

require (
github.com/fxamacker/cbor/v2 v2.9.2 // indirect
github.com/fxamacker/cbor/v2 v2.9.3 // indirect
github.com/go-task/slim-sprig/v3 v3.0.0 // indirect
github.com/google/btree v1.1.3 // indirect
github.com/google/gnostic-models v0.7.1 // indirect
github.com/gorilla/websocket v1.5.4-0.20250319132907-e064f32e3674 // indirect
github.com/kylelemons/godebug v1.1.0 // indirect
github.com/mxk/go-flowrate v0.0.0-20140419014527-cca7078d478f // indirect
github.com/x448/float16 v0.8.4 // indirect
golang.org/x/sync v0.21.0 // indirect
golang.org/x/sync v0.23.0 // indirect
k8s.io/gengo/v2 v2.0.0-20260408192533-25e2208e0dc3 // indirect; // indirect
sigs.k8s.io/randfill v1.0.0 // indirect
)
Expand All @@ -71,53 +71,53 @@ require (
github.com/go-logr/zapr v1.3.0 // indirect
github.com/go-openapi/jsonpointer v0.24.0 // indirect
github.com/go-openapi/jsonreference v0.21.6 // indirect
github.com/go-openapi/swag v0.27.0 // indirect
github.com/go-openapi/swag v0.29.2 // indirect
github.com/gobuffalo/flect v1.0.3 // indirect
github.com/gogo/protobuf v1.3.2 // indirect
github.com/google/go-cmp v0.7.0 // indirect
github.com/google/pprof v0.0.0-20260604005048-7023385849c0 // indirect
github.com/google/pprof v0.0.0-20260906184651-6331bc6350fe // indirect
github.com/google/uuid v1.6.0 // indirect
github.com/inconshreveable/mousetrap v1.1.0 // indirect
github.com/json-iterator/go v1.1.12 // indirect
github.com/mattn/go-colorable v0.1.15 // indirect
github.com/mattn/go-isatty v0.0.22 // indirect
github.com/mattn/go-isatty v0.0.24 // indirect
github.com/moby/spdystream v0.5.1 // indirect
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/modern-go/reflect2 v1.0.3-0.20250322232337-35a7c28c31ee // indirect
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
github.com/nxadm/tail v1.4.11 // indirect
github.com/openshift/osde2e-common v0.0.0-20260618165637-751e0d23bb9d
github.com/prometheus/client_model v0.6.2
github.com/prometheus/common v0.69.0 // indirect
github.com/prometheus/procfs v0.21.1 // indirect
github.com/openshift/osde2e-common v0.0.0-20260902185639-d3668b5bf74c
github.com/prometheus/client_model v0.6.3
github.com/prometheus/common v0.71.0 // indirect
github.com/prometheus/procfs v0.22.0 // indirect
github.com/spf13/cobra v1.10.2 // indirect
github.com/spf13/pflag v1.0.10 // indirect
go.uber.org/multierr v1.11.0 // indirect
golang.org/x/mod v0.37.0 // indirect
golang.org/x/oauth2 v0.36.0 // indirect
golang.org/x/sys v0.46.0 // indirect
golang.org/x/term v0.44.0 // indirect
golang.org/x/text v0.39.0 // indirect
golang.org/x/time v0.15.0 // indirect
golang.org/x/tools v0.47.0 // indirect
golang.org/x/mod v0.41.0 // indirect
golang.org/x/oauth2 v0.37.0 // indirect
golang.org/x/sys v0.48.0 // indirect
golang.org/x/term v0.45.0 // indirect
golang.org/x/text v0.41.0 // indirect
golang.org/x/time v0.16.0 // indirect
golang.org/x/tools v0.49.0 // indirect
gomodules.xyz/jsonpatch/v2 v2.5.0 // indirect
google.golang.org/protobuf v1.36.12-0.20260120151049-f2248ac996af // indirect
google.golang.org/protobuf v1.36.12 // indirect
gopkg.in/inf.v0 v0.9.1 // indirect
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
k8s.io/apiextensions-apiserver v0.36.0 // indirect
k8s.io/apiextensions-apiserver v0.37.0 // indirect
k8s.io/klog/v2 v2.140.0 // indirect
k8s.io/utils v0.0.0-20260319190234-28399d86e0b5 // indirect
k8s.io/utils v0.0.0-20260707023825-cf1189d6abe3 // indirect
sigs.k8s.io/json v0.0.0-20250730193827-2d320260d730 // indirect
sigs.k8s.io/yaml v1.6.0 // indirect
)

replace (
github.com/openshift/api => github.com/openshift/api v0.0.0-20250929151534-41627d81e9c1
k8s.io/api => k8s.io/api v0.35.2
k8s.io/apimachinery => k8s.io/apimachinery v0.35.2
k8s.io/client-go => k8s.io/client-go v0.35.2
sigs.k8s.io/cluster-api-provider-aws => github.com/openshift/cluster-api-provider-aws v0.2.1-0.20201125052318-b85a18cbf338
sigs.k8s.io/cluster-api-provider-azure => github.com/openshift/cluster-api-provider-azure v0.0.0-20210209143830-3442c7a36c1e
k8s.io/api => k8s.io/api v0.37.0
k8s.io/apimachinery => k8s.io/apimachinery v0.37.0
k8s.io/client-go => k8s.io/client-go v0.37.0
sigs.k8s.io/cluster-api-provider-aws => github.com/openshift/cluster-api-provider-aws c5a9d1911d7a

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[critical] invalid-go-module-syntax

The replace directive for sigs.k8s.io/cluster-api-provider-aws uses a bare commit hash (c5a9d1911d7a) without a version prefix. Go module replace directives require the target version to be a valid semver string. A bare commit hash causes a parse error, making the entire go.mod unparseable and breaking go build, go mod tidy, and all Go tooling. The base branch correctly used pseudo-version format v0.2.1-0.20201125052318-b85a18cbf338. Previously reported; the commit hash changed from e345a83efda5 to c5a9d1911d7a but the syntax error persists.

Suggested fix: Replace c5a9d1911d7a with the correct pseudo-version. Run go mod edit -replace sigs.k8s.io/cluster-api-provider-aws=github.com/openshift/cluster-api-provider-aws@c5a9d1911d7a followed by go mod tidy to let Go resolve the commit hash to a proper pseudo-version string.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[critical] invalid-go-module-syntax

The replace directive for sigs.k8s.io/cluster-api-provider-aws uses a bare commit hash (c5a9d1911d7a) without a version prefix. Go module replace directives require the target version to be a valid semver or pseudo-version string. A bare commit hash causes a parse error, making the entire go.mod unparseable and breaking go build, go mod tidy, and all Go tooling. The base branch correctly used pseudo-version format v0.2.1-0.20201125052318-b85a18cbf338.

Suggested fix: Replace the bare hash with a proper pseudo-version. Run: go mod edit -replace sigs.k8s.io/cluster-api-provider-aws=github.com/openshift/cluster-api-provider-aws@c5a9d1911d7a followed by go mod tidy to let Go resolve the commit hash to a valid pseudo-version string.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[critical] invalid-go-module-syntax

The replace directive for sigs.k8s.io/cluster-api-provider-aws uses a bare commit hash (c5a9d1911d7a) without a version prefix. Go module replace directives require the target version to be a valid semver or pseudo-version string (e.g., v0.0.0-20201125052318-b85a18cbf338). A bare commit hash is not valid go.mod syntax and will cause a parse error, breaking go build, go mod tidy, and all Go tooling. The base branch correctly used the pseudo-version v0.2.1-0.20201125052318-b85a18cbf338. This was introduced by this PR's diff, which changed the correctly-formatted pseudo-version to a bare hash.

Suggested fix: Replace the bare hash with a proper pseudo-version. Run: go mod edit -replace sigs.k8s.io/cluster-api-provider-aws=github.com/openshift/cluster-api-provider-aws@c5a9d1911d7a followed by go mod tidy to let Go resolve the commit hash to a valid pseudo-version string. Alternatively, if the intent was to keep pointing at the same commit as before, restore the original pseudo-version: v0.2.1-0.20201125052318-b85a18cbf338.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[critical] invalid-go-module-syntax

The replace directive for sigs.k8s.io/cluster-api-provider-aws uses a bare commit hash (c5a9d1911d7a) without a version prefix. Go module replace directives require the target version to be a valid semver or pseudo-version string. A bare commit hash causes a parse error, breaking go build, go mod tidy, and all Go tooling. The base branch correctly used pseudo-version format v0.2.1-0.20201125052318-b85a18cbf338. Previously reported; unchanged since prior review.

Suggested fix: Replace the bare hash with a proper pseudo-version. Run: go mod edit -replace 'sigs.k8s.io/cluster-api-provider-aws=github.com/openshift/cluster-api-provider-aws@c5a9d1911d7a' followed by go mod tidy to let Go resolve the commit hash to a valid pseudo-version string.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[critical] invalid-go-module-syntax

The replace directive for sigs.k8s.io/cluster-api-provider-aws uses a bare commit hash (c5a9d1911d7a) without a version prefix. Go module replace directives require the target version to be a valid semver or pseudo-version string. A bare 12-character hex string is not parseable by Go tooling and will cause go mod tidy, go build, and all Go commands to fail with a syntax error. The base branch correctly used pseudo-version format v0.2.1-0.20201125052318-b85a18cbf338.

Suggested fix: Replace the bare hash with a proper pseudo-version. Run: go mod edit -replace 'sigs.k8s.io/cluster-api-provider-aws=github.com/openshift/cluster-api-provider-aws@c5a9d1911d7a' followed by go mod tidy to let Go resolve the commit hash to a valid pseudo-version string.

sigs.k8s.io/cluster-api-provider-azure => github.com/openshift/cluster-api-provider-azure v0.1.0-alpha.3

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[medium] invalid go module version format

The replace directive for sigs.k8s.io/cluster-api-provider-aws uses a bare commit hash (e345a83efda5) instead of the required Go pseudo-version format. The previous value was a valid pseudo-version (v0.2.1-0.20201125052318-b85a18cbf338). Go modules require replace targets in go.mod to use valid semver or pseudo-version strings; a bare commit hash will cause parsing errors during go mod tidy and go build.

Suggested fix: Run go mod tidy to resolve the commit hash to the correct pseudo-version format (e.g., v0.2.1-0.20YYMMDDHHMMSS-e345a83efda5).

)
Loading