You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Currently,
gazelle update-repos
will still operate if someone adds a second duplicatego_repository
rule for a repo in thego.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 bygo mod tidy
andgazelle update-repos
does not match the one used for the build.Because of these drawbacks, we should create a
-strict
mode ingazelle update-repos
which will fail if duplicate repository rules are found from the repository loader.The first step in this solution is: #1937
The text was updated successfully, but these errors were encountered: