Skip to content

Conversation

@moustafab
Copy link
Contributor

@moustafab moustafab commented Dec 1, 2025

This tool allows us to generate random rules

Relates to https://github.com/grafana/alerting-squad/issues/1290


Note on genproto workaround

This PR includes replace directives in go.mod to work around ambiguous imports with google.golang.org/genproto.

Root cause

Google split their monolithic google.golang.org/genproto module into separate googleapis/api and googleapis/rpc modules. However, github.com/gogo/status (a transitive dependency via dskit) still references the old monolithic module, causing build failures when both versions appear in the dependency graph.

The fix

The replace directives force all genproto modules to use compatible versions from the same snapshot, eliminating the ambiguity.

When to remove

These directives can be removed once dskit drops its dependency on gogo/status or gogo/status is updated to use the split modules.

moustafab and others added 8 commits December 2, 2025 09:30
This tool allows us to generate random rules
  Revert explicit ./.tools/bin/ paths in Makefile back to using PATH.
  Improve the genproto replace directive comment to explain the root cause
  (gogo/status via dskit) and when the workaround can be removed.
@moustafab moustafab force-pushed the moustafab/add-alerting-gen branch from daa7ff0 to 39e0735 Compare December 2, 2025 14:36
@moustafab moustafab marked this pull request as ready for review December 2, 2025 14:47
@moustafab moustafab requested a review from a team as a code owner December 2, 2025 14:47
@moustafab moustafab self-assigned this Dec 2, 2025
@moustafab moustafab merged commit 58fa500 into main Dec 2, 2025
6 checks passed
@moustafab moustafab deleted the moustafab/add-alerting-gen branch December 2, 2025 15:10
@github-project-automation github-project-automation bot moved this from In review to Done in Alerting Dec 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants