Skip to content

Commit a9c140e

Browse files
committed
Fix run
1 parent c8c7a29 commit a9c140e

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ You can build for Linux (via Docker) using `-L`, e.g.:
2727
pkg -L build
2828
```
2929

30+
To run `pkg` without shellcode you can do eg. `pkgx +brewkit -- pkg build`,
31+
this is necessary because `pkg` is not listed as a provided program by brewkit
32+
since many other projects have decided to provide `pkg` and we didn’t want
33+
to trump them.
34+
3035
## Some Details
3136

3237
* The `pkg build` environment ensures you have a c/c++ compiler and `make`

bin/run

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
#!/usr/bin/env -S pkgx +deno bash +exo pipefail
22

33
cmd() {
4+
d="$(cd "$(dirname "$0")"/.. && pwd)
5+
46
deno run -A - <<EoTS
5-
import parse_pkg_str from '../lib/run/parse-pkg-str.ts'
7+
import parse_pkg_str from '$d/lib/run/parse-pkg-str.ts'
68
import { hooks } from 'pkgx'
79

810
const pkg = await parse_pkg_str('$1')

0 commit comments

Comments
 (0)