syft: Curl: Could not resolve host: latest
What happened:
-
Executing installation via
curl -sSfL https://raw.githubusercontent.com/anchore/syft/main/install.sh latest
-
Executed installation via
curl -sSfL https://raw.githubusercontent.com/anchore/syft/main/install.sh | sh -s -- -b /usr/local/bin latest
What you expected to happen:
Installation of the syft
binary to build out.
How to reproduce it (as minimally and precisely as possible): Ran the above commands in #1. Anything else we need to know?:
Environment:
- Output of
syft version
: - OS (e.g:
cat /etc/os-release
or similar): Host OS:Linux 5.11.0-41-generic #45-Ubuntu SMP Fri Nov 5 11:37:01 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 16 (8 by maintainers)
I fixed the issue by:
curl
.curl
version7.74.0
curl
line assudo
syft
from/bin/
to/usr/bin/
This is my output for
Thanks for looking into this. Not sure why it is not reproducible at your end.
I’ve tried that command again:
curl -sSfL https://raw.githubusercontent.com/anchore/syft/main/install.sh | sh -s anchore/syft info checking GitHub for latest tag anchore/syft crit unable to find ‘’ - use ‘latest’ or see https://github.com/anchore/syft/releases for details
I also updated my git repo with the latest change to install.sh
~/git/syft (main=) $ git pull remote: Enumerating objects: 3, done. remote: Counting objects: 100% (3/3), done. remote: Compressing objects: 100% (3/3), done. remote: Total 3 (delta 0), reused 0 (delta 0), pack-reused 0 Unpacking objects: 100% (3/3), 4.55 KiB | 2.28 MiB/s, done. From https://github.com/anchore/syft ecbfbe6…3d8c166 main -> origin/main Updating ecbfbe6…3d8c166 Fast-forward install.sh | 8 ++++±– 1 file changed, 5 insertions(+), 3 deletions(-)
… but I still get the same results:
~/git/syft (main=) $ ./install.sh anchore/syft info checking GitHub for latest tag anchore/syft crit unable to find ‘’ - use ‘latest’ or see https://github.com/anchore/syft/releases for details