nebius/SWE-rebench-V2-PRs huggingface dataset:
Repository: roots/trellis-cli
Pull request #489 (2024-11-09 03:02:00)

Enable Lima's loadDotSSHPubKeys SSH option
Lima v1.0.0 disabled this option by default but it's needed for Ansible which connects via SSH.


Patch:
diff --git a/pkg/lima/files/config.yml b/pkg/lima/files/config.yml
index 30b9bd0..fb91e75 100644
--- a/pkg/lima/files/config.yml
+++ b/pkg/lima/files/config.yml
@@ -15,6 +15,7 @@ mounts:
 mountType: "virtiofs"
 ssh:
   forwardAgent: true
+  loadDotSSHPubKeys: true
 networks:
 - vzNAT: true
 {{ if .Config.PortForwards }}


Test patch:
diff --git a/pkg/lima/instance_test.go b/pkg/lima/instance_test.go
index 40b5558..1449955 100644
--- a/pkg/lima/instance_test.go
+++ b/pkg/lima/instance_test.go
@@ -60,6 +60,7 @@ mounts:
 mountType: "virtiofs"
 ssh:
   forwardAgent: true
+  loadDotSSHPubKeys: true
 networks:
 - vzNAT: true
 
@@ -137,6 +138,7 @@ mounts:
 mountType: "virtiofs"
 ssh:
   forwardAgent: true
+  loadDotSSHPubKeys: true
 networks:
 - vzNAT: true