-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mage: optionally mount module cache for crossbuild (#16837)
* mage: optionally mount module cache for crossbuild Introduce another mage variable, CrossBuildMountModcache, which defaults to false. When set to true, the host's module cache ($GOPATH/pkg/mod) will be mounted into the crossbuild Docker containers, read-only. To ensure the cache is up-to-date, we run "go mod download" on the host before starting the Docker containers. Also, fix buildGoDaemon to stop assuming that tsg/go-daemon is vendored. Instead, use "go list -m github.com/tsg/go-daemon" to find the directory in either the vendor directory or the module cache. Rather than having arguments for ListModulePath, create separate functions for listing in the module cache and vendor directory. Create an unexported function in dev-tools/mage which calls the appropriate one depending on the value of UseVendor. We now use this in "findElasticBeatsDir". Inline defaultConfigFileParams, otherwise the OSSBeatDir and LibbeatDir calls end up calling ElasticBeatsDir at package init time, before apm-server uas an opportunity to set UseVendor=false.
- Loading branch information
Showing
10 changed files
with
93 additions
and
34 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
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
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