Skip to content
Closed
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
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ require (
golang.org/x/text v0.35.0 // indirect
golang.org/x/time v0.14.0 // indirect
google.golang.org/api v0.266.0 // indirect
google.golang.org/genproto v0.0.0-20260209200024-4cfbd4190f57 // indirect
google.golang.org/genproto 3dc84a4a5aaa // indirect

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | πŸ”΄ Critical | ⚑ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "Checking go.mod for non-canonical require versions (bare hashes)..."
rg -nP '^\s*[a-zA-Z0-9./_-]+\s+[0-9a-f]{7,40}\s*(//.*)?$' go.mod || true

echo
echo "Current genproto lines:"
rg -n 'google\.golang\.org/genproto' go.mod

Repository: openshift-hyperfleet/hyperfleet-sentinel

Length of output: 479


🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "go.mod parser acceptance check:"
(go mod edit -print >/dev/null) && echo "go mod edit -print: OK" || echo "go mod edit -print: FAILED"

echo
echo "Module resolution/version check (may contact proxy):"
(go list -m -json google.golang.org/genproto >/dev/null) && echo "go list -m: OK" || echo "go list -m: FAILED"

Repository: openshift-hyperfleet/hyperfleet-sentinel

Length of output: 446


Fix invalid go.mod dependency version for google.golang.org/genproto (line 138)

go mod rejects google.golang.org/genproto 3dc84a4a5aaa because the version is a bare hash; it must be a valid semver or canonical pseudo-version.

Suggested fix
-	google.golang.org/genproto 3dc84a4a5aaa // indirect
+	google.golang.org/genproto v0.0.0-<timestamp>-<commit> // indirect

Use the version produced by go get/go mod tidy for commit 3dc84a4a5aaa.

πŸ€– Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@go.mod` at line 138, The go.mod entry for the module symbol
google.golang.org/genproto is using a bare commit hash (3dc84a4a5aaa) which is
invalid; replace that entry with the canonical pseudo-version generated by the
Go toolchain for that commit (or a proper semver) by running go get/google
module resolution (e.g., run `go get google.golang.org/genproto@<commit>` or `go
mod tidy`) to update the dependency to the correct pseudo-version and commit
mapping, then commit the updated go.mod/go.sum.

google.golang.org/genproto/googleapis/api v0.0.0-20260401024825-9d38bb4040a9 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20260401024825-9d38bb4040a9 // indirect
google.golang.org/grpc v1.80.0 // indirect
Expand Down