Skip to content

πŸ™Œ OpenHands: AI-Driven Development

fix swebench repo/version being string (#4241)

Xingyao Wang01ae54a69d2d
diff --git a/evaluation/swe_bench/scripts/setup/instance_swe_entry.sh b/evaluation/swe_bench/scripts/setup/instance_swe_entry.sh
index c446354aa4..8e9eb8799f 100755
--- a/evaluation/swe_bench/scripts/setup/instance_swe_entry.sh
+++ b/evaluation/swe_bench/scripts/setup/instance_swe_entry.sh
@@ -23,7 +23,7 @@ if [[ -z "$item" ]]; then
exit 1
fi
-WORKSPACE_NAME=$(echo "$item" | jq -r '.repo + "__" + .version | gsub("/"; "__")')
+WORKSPACE_NAME=$(echo "$item" | jq -r '(.repo | tostring) + "__" + (.version | tostring) | gsub("/"; "__")')
echo "WORKSPACE_NAME: $WORKSPACE_NAME"