diff --git a/dev-tools/mage/crossbuild.go b/dev-tools/mage/crossbuild.go index ddeabbfdb79b..917f54eb3df8 100644 --- a/dev-tools/mage/crossbuild.go +++ b/dev-tools/mage/crossbuild.go @@ -327,7 +327,7 @@ func (b GolangCrossBuilder) Build() error { args = append(args, "--rm", - "--env", "GOFLAGS=-mod=readonly -buildvcs=false", + "--env", "'GOFLAGS=-mod=readonly -buildvcs=false'", "--env", "MAGEFILE_VERBOSE="+verbose, "--env", "MAGEFILE_TIMEOUT="+EnvOr("MAGEFILE_TIMEOUT", ""), "--env", fmt.Sprintf("SNAPSHOT=%v", Snapshot),