Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(gazelle update-repos): Create -strict mode #1941

Open
tyler-french opened this issue Oct 1, 2024 · 0 comments
Open

feat(gazelle update-repos): Create -strict mode #1941

tyler-french opened this issue Oct 1, 2024 · 0 comments
Assignees

Comments

@tyler-french
Copy link
Contributor

Currently, gazelle update-repos will still operate if someone adds a second duplicate go_repository rule for a repo in the go.mod file. This is part of the confusing part from WORKSPACE dependency management, and may cause confusion when users try to migrate to Bzlmod.

Additionally, it can lead to scenarios where the go_repository rule that is updated by go mod tidy and gazelle update-repos does not match the one used for the build.

Because of these drawbacks, we should create a -strict mode in gazelle update-repos which will fail if duplicate repository rules are found from the repository loader.

The first step in this solution is: #1937

@tyler-french tyler-french self-assigned this Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant