[Bug]: copilot.lua plugin installation fails with SSH checkout error #42

Open
opened 2025-10-27 07:12:13 -04:00 by slorksmo · 0 comments
slorksmo commented 2025-10-27 07:12:13 -04:00 (Migrated from github.com)

Hello there,

I am setting up your dotfiles on [Your OS, e.g., Fedora 42], and I encountered a persistent issue while installing plugins via Lazy.nvim.

The copilot.lua plugin fails to install because it attempts to use the SSH protocol for cloning, which fails if the user hasn't set up an SSH key.

Steps to Reproduce:

  1. Cloned the dotfiles repository.
  2. Created the symlink for the nvim configuration to ~/.config/nvim.
  3. Launched nvim, which automatically initiated plugin installation via Lazy.nvim.

Expected Behavior:
The copilot.lua plugin should install successfully.

Actual Behavior (The Error):
The installation fails with a clone failed error, indicating an issue with the SSH connection attempt:

Failed (1)
o copilot.lua @ BufReadPost @ Copilot = clone failed
...
remote: Compressing objects: 100% (313/313), done.
...
warning: clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry with 'git restore --source=HEAD .'

Proposed Solution (Optional):
To ensure installation works out-of-the-box for users who rely on HTTPS, perhaps changing the plugin source definition in the configuration files to explicitly use the HTTPS URL for cloning would resolve this dependency issue.

Thank you for your work on these dotfiles!


Hello there, I am setting up your dotfiles on **[Your OS, e.g., Fedora 42]**, and I encountered a persistent issue while installing plugins via `Lazy.nvim`. The **`copilot.lua`** plugin fails to install because it attempts to use the **SSH protocol** for cloning, which fails if the user hasn't set up an SSH key. **Steps to Reproduce:** 1. Cloned the dotfiles repository. 2. Created the symlink for the `nvim` configuration to `~/.config/nvim`. 3. Launched `nvim`, which automatically initiated plugin installation via Lazy.nvim. **Expected Behavior:** The `copilot.lua` plugin should install successfully. **Actual Behavior (The Error):** The installation fails with a `clone failed` error, indicating an issue with the SSH connection attempt: ``` Failed (1) o copilot.lua @ BufReadPost @ Copilot = clone failed ... remote: Compressing objects: 100% (313/313), done. ... warning: clone succeeded, but checkout failed. You can inspect what was checked out with 'git status' and retry with 'git restore --source=HEAD .' ``` **Proposed Solution (Optional):** To ensure installation works out-of-the-box for users who rely on HTTPS, perhaps changing the plugin source definition in the configuration files to explicitly use the **HTTPS URL** for cloning would resolve this dependency issue. Thank you for your work on these dotfiles\! -----
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
omerxx/dotfiles#42
No description provided.