forked from bazel-contrib/bazel-gazelle
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
go_repository: read configuration from main WORKSPACE
'gazelle fix' and 'gazelle update' now accept -repo_config, the path to a file where information about repositories can be loaded. By default, this is WORKSPACE in the repository root directory. 'gazelle fix' and 'gazelle update-repos' still update the WORKSPACE file in the repository root directory when this flag is set. go_repository passes the path to @//:WORKSPACE to -repo_config. go_repository resolves @//:WORKSPACE and any files mentioned in '# gazelle:repository_macro' directives. When these files, all go_repository rules will be invalidated. It should not be necessary to download cached repositories (except vcs repositories; see bazel-contrib#549). On a Macbook Pro, it takes about 22.5s to re-evaluate 70 cached, invalidated go_repository rules for github.com/gohugoio/hugo. If this becomes a project for large projects, we can provide a way to disable or limit this behavior in the future. go_repository_tools and go_repository_cache are moved to their own .bzl files. Changes in go_repository.bzl should not invalidate these in the future. Fixes bazel-contrib#529
- Loading branch information
Jay Conrod
committed
Jun 16, 2019
1 parent
2cf99d7
commit e29da6b
Showing
7 changed files
with
416 additions
and
243 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
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.