From 67164098d075e84f604827f2fbfaaf8a161f4a02 Mon Sep 17 00:00:00 2001 From: Achal Shah Date: Tue, 28 Jun 2022 11:36:57 -0700 Subject: [PATCH] fix: Stop running go mod tidy in setup.py Signed-off-by: Achal Shah This fixes a problem similar to https://github.com/pypa/cibuildwheel/issues/189#issuecomment-549933912. Running `go mod tidy` was updating `go.mod` and `go.sum`, which was causeing cibuildwheel to produce dirty builds. This comamnd isn't really even needed, so nixing it. --- setup.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/setup.py b/setup.py index 6584bba0c9..d32b13deed 100644 --- a/setup.py +++ b/setup.py @@ -434,8 +434,6 @@ def build_extension(self, ext: Extension): env={"PATH": bin_path, **go_env}) subprocess.check_call(["go", "install", "github.com/go-python/gopy"], env={"PATH": bin_path, **go_env}) - subprocess.check_call(["go", "mod", "tidy"], - env={"PATH": bin_path, **go_env}) subprocess.check_call( [ "gopy",