Skip to content

Commit

Permalink
fix: Fix to be able to run finch build with --ssh option
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
haytok committed Nov 15, 2023
1 parent 2b0c54c commit d4bdf66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion finch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d4bdf66

Please sign in to comment.