-
-
Notifications
You must be signed in to change notification settings - Fork 281
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
Failed to download registry archive on alpine linux #1601
Comments
It fails on Windows too (using busybox-w32).
|
The issue is most of these is that checking for "version" is not supported in Alpine binaries. λ docker run -it alpine
/ # gzip version
gzip: version: No such file or directory
/ # gzip --version
gzip: unrecognized option: version
BusyBox v1.36.1 (2023-11-07 18:53:09 UTC) multi-call binary.
Usage: gzip [-cfkdt123456789] [FILE]...
Compress FILEs (or stdin)
-1..9 Compression level
-d Decompress
-c Write to stdout
-f Force
-k Keep input files
-t Test integrity
/ # wget version
wget: bad address 'version'
/ # wget --version
wget: unrecognized option: version
BusyBox v1.36.1 (2023-11-07 18:53:09 UTC) multi-call binary.
Usage: wget [-cqS] [--spider] [-O FILE] [-o LOGFILE] [--header STR]
[--post-data STR | --post-file FILE] [-Y on/off]
[-P DIR] [-U AGENT] [-T SEC] URL...
Retrieve files via HTTP or FTP
--spider Only check URL existence: $? is 0 if exists
--header STR Add STR (of form 'header: value') to headers
--post-data STR Send STR using POST method
--post-file FILE Send FILE using POST method
-c Continue retrieval of aborted transfer
-q Quiet
-P DIR Save to DIR (default .)
-S Show server response
-T SEC Network read timeout is SEC seconds
-O FILE Save to FILE ('-' for stdout)
-o LOGFILE Log messages to FILE
-U STR Use STR for User-Agent header
-Y on/off Use proxy Assuming used flags are universal, λ docker run -it alpine
/ # which gzip
/bin/gzip
/ # echo $?
0
/ # which wget
/usr/bin/wget
/ # echo $?
0
/ # which not_present_command
/ # echo $?
1 |
Hmmm... Seems "--help" could also work: λ docker run -it alpine
/ # gzip --help
BusyBox v1.36.1 (2023-11-07 18:53:09 UTC) multi-call binary.
Usage: gzip [-cfkdt123456789] [FILE]...
Compress FILEs (or stdin)
-1..9 Compression level
-d Decompress
-c Write to stdout
-f Force
-k Keep input files
-t Test integrity
/ # echo $?
0
/ # wget --help
BusyBox v1.36.1 (2023-11-07 18:53:09 UTC) multi-call binary.
Usage: wget [-cqS] [--spider] [-O FILE] [-o LOGFILE] [--header STR]
[--post-data STR | --post-file FILE] [-Y on/off]
[-P DIR] [-U AGENT] [-T SEC] URL...
Retrieve files via HTTP or FTP
--spider Only check URL existence: $? is 0 if exists
--header STR Add STR (of form 'header: value') to headers
--post-data STR Send STR using POST method
--post-file FILE Send FILE using POST method
-c Continue retrieval of aborted transfer
-q Quiet
-P DIR Save to DIR (default .)
-S Show server response
-T SEC Network read timeout is SEC seconds
-O FILE Save to FILE ('-' for stdout)
-o LOGFILE Log messages to FILE
-U STR Use STR for User-Agent header
-Y on/off Use proxy
/ # echo $?
0 Also consistency is needed, some commands use "--help" and others "--version": |
I can confirm that this still happens to mason.nvim v1.10.0. I also get the error
|
I've searched open issues for similar requests
I've recently downloaded the latest plugin version of mason.nvim
Problem description
Hello. I'm trying to run
:Mason
command in neovim installed in alpine linux system, and getting an error mentioned in title. I've actually found the cause of this problem, so TLDR:Mason falls back to using
wget
command because there's nocurl
installed. However,wget
provided by alpine linux out of box is not the "default" wget, and it expects different command line args (see attached logs). So it fails because of that. Indeed, I easily fixed the problem by installing curl, but nonetherless, this error is confusing.Also, as shown by healthcheck, there might be similar problems with other commands like
unzip
as well (but I have yet to face such problems)Expected behavior
:Mason
works with no errorsAffected packages
All
Mason output
No response
Installation log
Neovim version (>= 0.7)
NVIM v0.9.4
Build type: MinSizeRel
LuaJIT 2.1.0-beta3
Operating system/version
Linux alpine 6.7.0-0-edge #1-Alpine SMP PREEMPT_DYNAMIC Thu, 11 Jan 2024 15:05:06 +0000 x86_64 Linux
Healthcheck
Screenshots
No response
The text was updated successfully, but these errors were encountered: