GoPackage: default -modcacherw to ensure stage cleanup (#45350)

This commit is contained in:
Wouter Deconinck
2024-07-23 11:48:52 -04:00
committed by GitHub
parent fc0955b125
commit 0d326f83b6

View File

@@ -72,7 +72,7 @@ def build_directory(self):
def build_args(self):
"""Arguments for ``go build``."""
# Pass ldflags -s = --strip-all and -w = --no-warnings by default
return ["-ldflags", "-s -w", "-o", f"{self.pkg.name}"]
return ["-modcacherw", "-ldflags", "-s -w", "-o", f"{self.pkg.name}"]
@property
def check_args(self):