Skip to content

Commit dbf4ca5

Browse files
committed
Add test
1 parent 714349b commit dbf4ca5

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,14 @@ jobs:
9090
env:
9191
XDG_DATA_HOME: /tmp/foo
9292
93+
- run: |
94+
./pkgm.ts i node@22 dev
95+
[[ $(node --version) = v22* ]] || exit 1
96+
mkdir foo
97+
cd foo
98+
echo "dependencies: node@20" > pkgx.yaml
99+
[[ $(node --version) = v20* ]] || exit 1
100+
93101
# https://github.com/pkgxdev/pkgm/issues/62
94102
- run: |
95103
./pkgm.ts i spotify_player

pkgm.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -747,7 +747,7 @@ dev_check() {
747747
}
748748
749749
if d="$(dev_check)"; then
750-
eval "$(/usr/local/bin/dev --quiet "$d")"
750+
eval "$(/usr/local/bin/dev "$d" 2>/dev/null)"
751751
[ "$(command -v ${name} 2>/dev/null)" != "${selfpath}" ] && exec ${name} "$@"
752752
fi
753753

0 commit comments

Comments
 (0)