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
Current implementation forces user to declare go_repository before gazelle_dependencies to avoid being overridden. With seperated macros, user can introduce the whatever go_deps they want at whatever place.
This can be implemented as:
defgazelle_dependencies(enable_go_deps=True): # flip to False when all downstream have migrated or ask downstream to use False or also provide such option.ifenable_go_deps:
gazelle_go_dependencies()
defgazelle_go_dependencies(): # we can also add parameters to enable/disable any particular repogo_repo(...)
Now, we can use
something_that_deps_on_gazelle()
# no something_that_deps_on_gazelle_go_deps()another_that_deps_on_gazelle(enable_go_deps=False)
gazelle_dependencies(enable_go_deps=False)
go_repo(name="my_go_deps")
The text was updated successfully, but these errors were encountered:
- gazelle_init()
- gazelle_go_repositories()
Thanks to it, the caller can call go_repository in between,
loading their own (likely newer) version of the dependencies.
Currently `go_repository` cannot be called before `gazelle_dependencies`,
as the `bazel_gazelle_go_repository_cache` is not yet initialized.
Fixes problems like:
- bazelbuild#1582
- bazelbuild#1468
- bazelbuild#1305
-
Current implementation forces user to declare go_repository before gazelle_dependencies to avoid being overridden. With seperated macros, user can introduce the whatever go_deps they want at whatever place.
This can be implemented as:
Now, we can use
The text was updated successfully, but these errors were encountered: