From 6537b88ffae7756e4c267e8922e09e466fd6943c Mon Sep 17 00:00:00 2001 From: "Greg T. Wallace" <greg@gregtwallace.com> Date: Thu, 19 Jun 2025 23:04:53 -0400 Subject: [PATCH] build: fix subprocess args --- build_release.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build_release.py b/build_release.py index cd2fe97..d3892e7 100644 --- a/build_release.py +++ b/build_release.py @@ -37,7 +37,7 @@ os.makedirs(outBaseDir) os.makedirs(releaseDir) # get version number / tag -gitTag = subprocess.check_output("git describe --tags --abbrev=0").decode('utf-8').strip() +gitTag = subprocess.check_output(["git", "describe", "--tags", "--abbrev=0"]).decode('utf-8').strip() # loop through and build all targets for target in targets: @@ -60,8 +60,8 @@ for target in targets: extension = ".exe" # build binary and install only binary - subprocess.run(f"go build -o {targetOutDir}/apc-p15-tool{extension} ./cmd/tool") - subprocess.run(f"go build -o {targetOutDir}/apc-p15-install{extension} ./cmd/install_only") + subprocess.run(["go", "build", "-o", f"{targetOutDir}/apc-p15-tool{extension}", "./cmd/tool"]) + subprocess.run(["go", "build", "-o", f"{targetOutDir}/apc-p15-install{extension}", "./cmd/install_only"]) # copy other important files for release shutil.copy("README.md", targetOutDir)