Skip to content

SWE-agent takes a GitHub issue and tries to automatically fix it, using your LM of choice. It can also be employed for offensive cybersecurity or competitive coding challenges. [NeurIPS 2024]

fix: TARGETARCH not set on some OS/docker setups (#249)

Massimiliano Pronesti799f07e2bfe7
diff --git a/setup.sh b/setup.sh
index faa0c313..8bf5bcab 100755
--- a/setup.sh
+++ b/setup.sh
@@ -4,7 +4,9 @@
set -euo pipefail
echo "Setting up docker image for swe-agent..."
-docker build -t sweagent/swe-agent:latest -f docker/swe.Dockerfile .
+# TARGETARCH should be set automatically on most (but not all) systems, see
+# https://github.com/princeton-nlp/SWE-agent/issues/245
+docker build -t sweagent/swe-agent:latest -f docker/swe.Dockerfile --build-arg TARGETARCH=$(uname -m) .
echo "Setting up docker image for evaluation..."
docker build -t sweagent/swe-eval:latest -f docker/eval.Dockerfile .