Skip to content

Commit aa60021

Browse files
add support for goexperiment env var
1 parent 5180ad1 commit aa60021

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

xgo.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -442,6 +442,7 @@ func toArgs(config *ConfigFlags, flags *BuildFlags, folder string) []string {
442442
"-e", "TARGETS=" + strings.Replace(strings.Join(config.Targets, " "), "*", ".", -1),
443443
"-e", fmt.Sprintf("GOPROXY=%s", os.Getenv("GOPROXY")),
444444
"-e", fmt.Sprintf("GOPRIVATE=%s", os.Getenv("GOPRIVATE")),
445+
"-e", fmt.Sprintf("GOEXPERIMENT=%s", os.Getenv("GOEXPERIMENT")),
445446
}
446447

447448
// Set custom environment variables

0 commit comments

Comments
 (0)