twpayne/chezmoi

One-line binary install script does not give an error when cannot establish HTTPS connection

Opened this issue · 4 comments

What exactly are you trying to do?

I'm trying to install Chezmoi on a fresh Ubuntu Desktop instance.

The command:

sh -c "$(curl -fsLS get.chezmoi.io)"

The output:

error real_tag error retrieving GitHub release latest

Where else have you checked for solutions?

Output of any commands you've tried with --verbose flag

N/A

Output of chezmoi doctor

N/A

Additional context

This command worked about an hour ago when I was setting up an identical Ubuntu Desktop instance. Perhaps the latest tag got botched accidentally?

This is almost certainly a temporary issue on GitHub's side. Try again in 30 minutes or so.

@twpayne It's possible that this could also be a factor in #3749, though there isn't a great way to know for sure.

Closing the loop on this issue. The fix was to install a few additional dependencies:

sudo apt install apt-transport-https ca-certificates software-properties-common

Thanks for the investigation here. I suspect that the only package you actually need is ca-certificates. In any case, the one line install script should give a meaningful error message when it can't establish an authenticated connection to GitHub. So, I'll re-open this issue as a bug.