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

problem with Deno installer #781

Closed
k0gen opened this issue Nov 28, 2023 · 1 comment
Closed

problem with Deno installer #781

k0gen opened this issue Nov 28, 2023 · 1 comment

Comments

@k0gen
Copy link

k0gen commented Nov 28, 2023

Failing to install deno in my Docker image build:

20.37 Installing deno ...
  20.38     Found  ~/.local/bin
  20.38 
  20.38     Error: no 'deno@stable' release for 'linux' (gnu) on 'amd64' as one of 'tar,exe,xz,git,dmg'
  20.38       'deno' is available for 'macos,windows,linux' (none,msvc,gnu) on 'arm64,amd64' as one of 'zip,tar'
  20.38       (check that the package name and version are correct)
  20.38 
  20.38       Double check at https://webi.sh//api/releases/[email protected]
  20.38           ?os=linux&arch=amd64&libc=gnu&formats=tar,exe,xz,git,dmg&pretty=true
  20.38 
  ------
  Dockerfile:4
  --------------------
     3 |     ENV DEBIAN_FRONTEND=noninteractive
     4 | >>> RUN apt-get update && \
     5 | >>>     apt-get install -y git build-essential openssl libssl-dev libc6-dev clang libclang-dev ca-certificates curl && \
     6 | >>>     curl -sLo /usr/local/bin/yq https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64 && chmod +x /usr/local/bin/yq && \
     7 | >>>     curl -sS https://webi.sh/deno | sh
     8 |     
  --------------------
  ERROR: failed to solve: process "/bin/sh -c apt-get update &&     apt-get install -y git build-essential openssl libssl-dev libc6-dev clang libclang-dev ca-certificates curl &&     curl -sLo /usr/local/bin/yq https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64 && chmod +x /usr/local/bin/yq &&     curl -sS https://webi.sh/deno | sh" did not complete successfully: exit code: 1
Error: Docker build failed with exit code 1

btw yq installs just fine.

@coolaj86
Copy link
Member

You don't have zip installed.

The error message is a bit generic (shows "this is what's available" vs "this is what your machine has") and needs to be made more clear here, but what it's telling you is that you have xz and tar but deno needs zip.

Closing because there's already a fix for the error message in the works as part of #756.

Feel free to reopen if something goes wrong once you have zip in your docker image.

@coolaj86 coolaj86 closed this as completed Dec 4, 2023
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

No branches or pull requests

2 participants