From 6838a37cc15788af908462f65403ddce605dd3a8 Mon Sep 17 00:00:00 2001 From: Benjamin Lupton Date: Sun, 15 Sep 2024 15:14:57 +0800 Subject: [PATCH] setup-util-deno: use deno from apk edge, document snap --classic works /ref https://github.com/bevry/dorothy/actions/runs/10869014603/job/30159659960 /ref https://github.com/denoland/deno/issues/3711#issuecomment-1646706017 --- commands/setup-util-deno | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/commands/setup-util-deno b/commands/setup-util-deno index a78bcb6eb..365f91c5a 100755 --- a/commands/setup-util-deno +++ b/commands/setup-util-deno @@ -25,6 +25,11 @@ # https://repology.org/project/deno/versions +# Note that for Alpine, Alpine uses musl, whereas Deno only provides gnu builds, as such executing the gnu build on Alpine fails with 127 +# https://github.com/denoland/deno_docker/issues/240 - request for apk package +# https://github.com/denoland/deno/issues/3711 - request for musl build +# https://pkgs.alpinelinux.org/packages?name=deno - community build for alpine + function setup_util_deno() ( source "$DOROTHY/sources/bash.bash" @@ -35,10 +40,12 @@ function setup_util_deno() ( # setup # Don't use the official yet setupid [INSTALLER='https://deno.land/install.sh'], unlike setup-util, it ignores XDG and dumps the bin in [$HOME/.deno/bin/deno] with nothing else in [$HOME/.deno] except that bin, making it useless without slow clutter of env modifications - # Don't use [SNAP='deno'] as it faces [Permission denied (os error 13)] when runnin on scripts outside the snap: https://github.com/denoland/deno/issues/5816 + # Don't use [SNAP='deno'] without --classic as it faces [Permission denied (os error 13)] when running on scripts outside the snap: https://github.com/denoland/deno/issues/5816 local arch options=( --cli='deno' "$@" + APK_REPO='http://dl-cdn.alpinelinux.org/alpine/edge/community' + APK='deno' AUR='deno' # ARCH BREW='deno' CARGO='deno'