Open
Description
Hello
When trying to install the feature for version 2.12.0 it seems like the install succeeds but afterwards the executable for hadolint isn't found.
When running the script on a local Ubuntu machine it seems like everything works as expected, except for curl that is failing (silently).
I ran the bash script with set -eux
# VERSION=2.12.0 ./test.sh
[...]
+ echo HADOLINT_VERSION=2.12.0
HADOLINT_VERSION=2.12.0
+ HADOLINT_VERSION=2.12.0
+ curl -sSL -o /usr/local/bin/hadolint https://github.com/hadolint/hadolint/releases/download/v2.12.0/hadolint-Linux-x86_64
+ chmod 0755 /usr/local/bin/hadolint
+ rm -rf '/var/lib/apt/lists/*'
+ echo 'Done!'
Done!
# ls -lah /usr/local/bin/hadolint
ls: cannot access '/usr/local/bin/hadolint': No such file or directory
The same works fine for hadolint version 2.11.0
# VERSION=2.11.0 ./test.sh
[...]
+ echo HADOLINT_VERSION=2.11.0
HADOLINT_VERSION=2.11.0
+ HADOLINT_VERSION=2.11.0
+ curl -sSL -o /usr/local/bin/hadolint https://github.com/hadolint/hadolint/releases/download/v2.11.0/hadolint-Linux-x86_64
+ chmod 0755 /usr/local/bin/hadolint
+ rm -rf '/var/lib/apt/lists/*'
+ echo 'Done!'
Done!
# ls -lah /usr/local/bin/hadolint
-rwxr-xr-x 1 root root 2.4M Feb 23 16:39 /usr/local/bin/hadolint
I have a few different versions of curl and it seems to not work with version 7.68.0 of curl but it does with 7.81.0 for hadolint version 2.12.0
$ curl -sSL -o /tmp/hadolint https://github.com/hadolint/hadolint/releases/download/v2.12.0/hadolint-Linux-x86_64
$ ls -lah /tmp/hadolint
-rwxr-xr-x 1 root root 2,4M Feb 23 18:03 /tmp/hadolint
$ curl --version
curl 7.81.0 (x86_64-pc-linux-gnu) libcurl/7.81.0 OpenSSL/3.0.2 zlib/1.2.11 brotli/1.0.9 zstd/1.4.8 libidn2/2.3.2 libpsl/0.21.0 (+libidn2/2.3.2) libssh/0.9.6/openssl/zlib nghttp2/1.43.0 librtmp/2.3 OpenLDAP/2.5.16
Release-Date: 2022-01-05
Protocols: dict file ftp ftps gopher gophers http https imap imaps ldap ldaps mqtt pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp
Features: alt-svc AsynchDNS brotli GSS-API HSTS HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets zstd
$ curl -sSL -o /tmp/hadolint https://github.com/hadolint/hadolint/releases/download/v2.12.0/hadolint-Linux-x86_64
$ ls -lah /tmp/hadolint
ls: cannot access '/tmp/hadolint': No such file or directory
$ curl --version
curl 7.68.0 (x86_64-pc-linux-gnu) libcurl/7.68.0 OpenSSL/1.1.1f zlib/1.2.11 brotli/1.0.7 libidn2/2.2.0 libpsl/0.21.0 (+libidn2/2.2.0) libssh/0.9.3/openssl/zlib nghttp2/1.40.0 librtmp/2.3
Release-Date: 2020-01-08
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp
Features: AsynchDNS brotli GSS-API HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets
I'm just not sure where to address this issue to but maybe you can help.
Metadata
Metadata
Assignees
Labels
No labels