-
Notifications
You must be signed in to change notification settings - Fork 385
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(repo): load repositories should fail on duplicates (#1937)
We've recently had issues because we have multiple `go_repository` rules with the same name, at different versions. If we run `go mod tidy` and `gazelle update-repos`, the rule that gets updated isn't always the one that ends up being used in the build. To solve this, we are planning to add a check in CI to make sure no duplicate go_repository rules are loaded. This change is needed in order to use `gazelle/repo` to enable this feature. This can also be potentially used to help aid others in migrating to Bzlmod or simply cleaning up their repos.
- Loading branch information
1 parent
186dedd
commit 3dd8374
Showing
2 changed files
with
26 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters