From d4bdf66e1f4013fc6e4565206f0c0a687f9f222d Mon Sep 17 00:00:00 2001 From: Hayato Kiwata Date: Thu, 16 Nov 2023 00:09:50 +0900 Subject: [PATCH] fix: Fix to be able to run finch build with --ssh option In the current implementation, the following error occurs when running finch build with the `--ssh default` option. This issue is also reported in issue/452. ``` error: invalid empty ssh agent socket: make sure SSH_AUTH_SOCK is set FATA[0000] no image was built FATA[0000] exit status 1 ``` This is because the ssh agent is not starting on the vm started using lima and the SSH_AUTH_SOCK variable is empty. As a result, this error occurs. On the other hand, setting forwardAgent to true in finch.yaml will configure the vm to forward the ssh agent. As a result, the ssh agent will be started in the vm and finch build can be executed using the `--ssh default` option. Therefore, this commit will fix it so that finch build can be run using the `--ssh default` option. Signed-off-by: Hayato Kiwata --- finch.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/finch.yaml b/finch.yaml index 27c206862..8aa9f8403 100644 --- a/finch.yaml +++ b/finch.yaml @@ -105,7 +105,7 @@ ssh: loadDotSSHPubKeys: false # Forward ssh agent into the instance. # 🟢 Builtin default: false - forwardAgent: null + forwardAgent: true # Forward X11 into the instance # 🟢 Builtin default: false forwardX11: null