From 223845451a6de9062e73e7dc7c20e4771472287c Mon Sep 17 00:00:00 2001 From: Max Howell Date: Tue, 7 Jan 2025 17:08:55 -0500 Subject: [PATCH] k, well `dev` needs an unmodified env MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Otherwise when unsetting the env the polluted additions remain. There’s probably more complicated ways to solve this, but assuming `pkgx` is in the PATH is reasonable for the usage of this tool IMO. --- projects/pkgx.sh/dev/package.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/projects/pkgx.sh/dev/package.yml b/projects/pkgx.sh/dev/package.yml index 2a3ea2fab6..395c92b9f0 100644 --- a/projects/pkgx.sh/dev/package.yml +++ b/projects/pkgx.sh/dev/package.yml @@ -7,8 +7,9 @@ display-name: dev versions: github: pkgxdev/dev -dependencies: - pkgx.sh: ^1,^2 +# strictly needed but breaks `dev` as it needs a virgin env +# dependencies: + # pkgx.sh: ^1,^2 build: - mkdir -p {{prefix}}/bin {{prefix}}/share/pkgx/dev @@ -19,7 +20,8 @@ build: prop: | #!/bin/sh d="$(cd "$(dirname $0)"/.. && pwd)" - exec "$d/share/pkgx/dev/app.ts" "$@" + deno="$(pkgx +deno -- which deno)" + exec "$deno" run -A "$d/share/pkgx/dev/app.ts" "$@" provides: - bin/dev