-
Notifications
You must be signed in to change notification settings - Fork 380
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change update-repos to assume that go.mod and go.sum contains all the information needed. This implies that the user has already run `go mod tidy` or `go mod tidy -e` prior to running `gazelle update-repos`. There are a few benefits with this new approach: 1. No network call. This allows enterprise setup to make network call from a separate environment while running `go mod tidy`. And update-repos is massively simplify to no network call and thus, much faster. 2. Benefit from `go mod tidy` graph pruning. Unused transitive dependencies will not longer be generated as extra `go_repository`. In some setup, this could reduce the amount of `go_repository` by 6-10x.
- Loading branch information
Showing
4 changed files
with
99 additions
and
28 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