Skip to content

Commit

Permalink
Dump packages and platforms env variables (#23994) (#23997)
Browse files Browse the repository at this point in the history
  • Loading branch information
v1v authored Feb 11, 2021
1 parent c2f737b commit 2801cc4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions dev-tools/mage/settings.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ var (
XPackDir = "../x-pack"
RaceDetector = false
TestCoverage = false
PLATFORMS = EnvOr("PLATFORMS", "")
PACKAGES = EnvOr("PACKAGES", "")

// CrossBuildMountModcache, if true, mounts $GOPATH/pkg/mod into
// the crossbuild images at /go/pkg/mod, read-only.
Expand Down Expand Up @@ -160,6 +162,8 @@ func varMap(args ...map[string]interface{}) map[string]interface{} {
"GOARCH": GOARCH,
"GOARM": GOARM,
"Platform": Platform,
"PLATFORMS": PLATFORMS,
"PACKAGES": PACKAGES,
"BinaryExt": BinaryExt,
"XPackDir": XPackDir,
"BeatName": BeatName,
Expand Down Expand Up @@ -203,6 +207,8 @@ BeatLicense = {{.BeatLicense}}
BeatURL = {{.BeatURL}}
BeatUser = {{.BeatUser}}
VersionQualifier = {{.Qualifier}}
PLATFORMS = {{.PLATFORMS}}
PACKAGES = {{.PACKAGES}}
## Functions
Expand Down

0 comments on commit 2801cc4

Please sign in to comment.