-
Notifications
You must be signed in to change notification settings - Fork 386
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
repository_macro directive for referencing macros from WORKSPACE (#493)
Added the repository_macro directive with the following format: # gazelle:repository_macro repos.bzl%go_repositories Gazelle only recognizes this directive when reading from the WORKSPACE file. fix-update uses the directive to know about rules defined in a macro file, so they can be used during dependency resolution. update-repos can now update repository rules in the corresponding macros without additional command line arguments instead of writing copies to WORKSPACE. The to-macro flag functionality has been modified to only write new repository rules to the corresponding macro, and to update existing rules in macros and the WORKSPACE file. However, duplicates will still be written to the macro if the repository rule is not a go_repository rule. Fixes #483
- Loading branch information
Showing
10 changed files
with
533 additions
and
92 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
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
Oops, something went wrong.