...

Command generate_repo_config

Command generate_repo_config takes in a build config file such as WORKSPACE and generates a stripped version of the file. The generated config file should contain only the information relevant to gazelle for dependency resolution, so go_repository rules with importpath and name defined, plus any directives.

This command is used by the go_repository_config rule to generate a repo config file used by all go_repository rules. A list of macro files is printed to stdout to be read by the go_repository_config rule.