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: Switch to official swe-rex package

Kilian Lieretf0dfb63d4a3e
diff --git a/docker/tiny_test.Dockerfile b/docker/tiny_test.Dockerfile
index 13628841..e35f55ba 100644
--- a/docker/tiny_test.Dockerfile
+++ b/docker/tiny_test.Dockerfile
@@ -6,7 +6,7 @@ ENV TZ=Etc/UTC
WORKDIR /
RUN pip install pipx
-RUN pipx install 0fdb5604
+RUN pipx install swe-rex
RUN pip install flake8
RUN pipx ensurepath
diff --git a/docker/tiny_test_x86.Dockerfile b/docker/tiny_test_x86.Dockerfile
index f6e50031..45d72d41 100644
--- a/docker/tiny_test_x86.Dockerfile
+++ b/docker/tiny_test_x86.Dockerfile
@@ -5,9 +5,11 @@ ENV TZ=Etc/UTC
WORKDIR /
-RUN mkdir -p /root/tools/defaults/lib
-COPY tools/defaults/ /root/tools/defaults/
-RUN touch /root/tools/defaults/lib/utils.sh
-
RUN pip install pipx
+RUN pipx install swe-rex
+RUN pip install flake8
RUN pipx ensurepath
+
+SHELL ["/bin/bash", "-c"]
+# This is where pipx installs things
+ENV PATH="$PATH:/root/.local/bin/"