Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running ~/.tmux/plugins/tpm/bin/install_plugins hangs when running in Github Actions #219

Open
rahul0705 opened this issue Mar 28, 2022 · 2 comments · May be fixed by #282
Open

Running ~/.tmux/plugins/tpm/bin/install_plugins hangs when running in Github Actions #219

rahul0705 opened this issue Mar 28, 2022 · 2 comments · May be fixed by #282

Comments

@rahul0705
Copy link

It looks like when trying to install plugins inside of a macos-latest (no issues on ubuntu-latest) environment within Github Actions it hangs on the cloning step of installing the listed plugins.

tmux.conf: https://github.com/rahul0705/dotfiles/blob/ci/terminals/tmux/tmux.conf

Installation script: https://github.com/rahul0705/dotfiles/blob/ci/meta/configs/tmux.yml

Example failure: https://github.com/rahul0705/dotfiles/runs/5715115210?check_suite_focus=true

@rahul0705
Copy link
Author

After further investigation, the offending problem seems to be https://github.com/tmux-plugins/tpm/blob/master/scripts/install_plugins.sh#L34 where the git::@ should be removed

@geoffreyvanwyk
Copy link

I have the same problem when using Ansible. When I run the command directly from the command-line, the following error appears:

Installing "tmux-which-key"
The authenticity of host 'github.com (20.87.245.0)' can't be established.
ED25519 key fingerprint is SHA256:+DiY3wvvV6TuJJhbpZisF/zLDA0zPMSvHdkr4UvCOqU.
This key is not known by any other names
Are you sure you want to continue connecting (yes/no/[fingerprint])?

This means it is unnecessarily connecting over SSH, when just HTTPS would do.

geoffreyvanwyk added a commit to geoffreyvanwyk/tpm that referenced this issue Apr 17, 2024
This occurs because the URL used to connect to GitHub is for SSH. This is not necessary. HTTPS is enough.
This causes the `install_plugins` command to hang when used noninteractively on automation platforms such
as GitHub Actions or Ansible.

Resolves tmux-plugins#219
geoffreyvanwyk added a commit to geoffreyvanwyk/tpm that referenced this issue Apr 17, 2024
This occurs because the URL used to connect to GitHub is for SSH. This is not necessary. HTTPS is enough.
This causes the `install_plugins` command to hang when used noninteractively on automation platforms such
as GitHub Actions or Ansible.

Resolves tmux-plugins#219
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants