forked from golang/build
-
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.
cmd/coordinator: factor out GOPATH dep fetching from runSubrepoTests
The code to fetch golang.org/x/* dependencies has become deeply nested after additional logic and complexity has been added to runSubrepoTests, making it harder to read, maintain, and be confident in. Factor it out into a dedicated and well documented method. This CL is a pure refactor. The next CL will make changes to simplify the dependency fetching logic, which becomes easer after it has been factored out. Also factor out the code to concatenate multiple errors from runSubrepoTests into a helper multiError type, and simplify path.Join("go", "bin", "go") to a constant "go/bin/go". Fixes golang/go#34247 Change-Id: I4b5775408056723e2e5ab9a84776a11f5069d58a Reviewed-on: https://go-review.googlesource.com/c/build/+/195277 Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
- Loading branch information
Showing
2 changed files
with
153 additions
and
120 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