Skip to content

Commit b28437f

Browse files
committed
Bump libpkgx
Fixes #59
1 parent e970d43 commit b28437f

File tree

2 files changed

+15
-4
lines changed

2 files changed

+15
-4
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,3 +76,15 @@ jobs:
7676
# - run: ./pkgm.ts i xpra.org # https://github.com/pkgxdev/pkgm/issues/13
7777
# - run: ls -la /usr/local/pkgs/xpra.org/v6.2.3/venv/bin
7878
# - run: xpra --version
79+
80+
# verifies that libpkgx is creating the pantry at the right place
81+
# Refs: https://github.com/pkgxdev/pkgm/issues/59
82+
- run: |
83+
./pkgm.ts i semverator
84+
if test -d /foo/pkgx; then
85+
test $(uname) = Linux
86+
else
87+
test $(uname) = Darwin
88+
fi
89+
env:
90+
XDG_DATA_HOME: /foo

pkgm.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,11 @@ import {
77
SemVer,
88
semver,
99
utils,
10-
} from "https://deno.land/x/libpkgx@v0.20.3/mod.ts";
11-
import { dirname, join } from "jsr:@std/path@^1";
10+
} from "https://deno.land/x/libpkgx@v0.21.0/mod.ts";
11+
import { basename, dirname, join } from "jsr:@std/path@^1";
1212
import { ensureDir, existsSync, walk } from "jsr:@std/fs@^1";
1313
import { parseArgs } from "jsr:@std/cli@^1";
14-
import hydrate from "https://deno.land/x/libpkgx@v0.20.3/src/plumbing/hydrate.ts";
15-
import { basename } from "node:path";
14+
const { hydrate } = plumbing;
1615

1716
function standardPath() {
1817
let path = "/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin";

0 commit comments

Comments
 (0)