Skip to content

Commit

Permalink
setup-util-deno: use deno from apk edge, document snap --classic works
Browse files Browse the repository at this point in the history
  • Loading branch information
balupton committed Sep 15, 2024
1 parent 96d91bc commit 6838a37
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion commands/setup-util-deno
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand All @@ -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'
Expand Down

0 comments on commit 6838a37

Please sign in to comment.