-
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.
go_repository: read configuration from main WORKSPACE (#550)
'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 #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 #529
- Loading branch information
Jay Conrod
authored
Jun 17, 2019
1 parent
81dc0cd
commit 76bba8b
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.