From a3616700f5246548220fab6afc19b44535520bdb Mon Sep 17 00:00:00 2001 From: joncrall Date: Wed, 29 Jun 2022 21:00:15 -0400 Subject: [PATCH] Pass cwd to first two calls --- cibuildwheel/oci_container.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cibuildwheel/oci_container.py b/cibuildwheel/oci_container.py index 3550a88c..c02f7678 100644 --- a/cibuildwheel/oci_container.py +++ b/cibuildwheel/oci_container.py @@ -110,13 +110,13 @@ class OCIContainer: self.bash_stdout = self.process.stdout # run a noop command to block until the container is responding - self.call(["/bin/true"]) + self.call(["/bin/true"], cwd="/") if self.cwd: # Although `docker create -w` does create the working dir if it # does not exist, podman does not. There does not seem to be a way # to setup a workdir for a container running in podman. - self.call(["mkdir", "-p", os.fspath(self.cwd)]) + self.call(["mkdir", "-p", os.fspath(self.cwd)], cwd="/") return self