Skip to content

Commit

Permalink
Merge branch 'main' into build-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
j1philli authored Oct 19, 2023
2 parents d46133e + a9c140e commit cf0dfa3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ You can build for Linux (via Docker) using `-L`, e.g.:
pkg -L build
```

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

## Some Details

* The `pkg build` environment ensures you have a c/c++ compiler and `make`
Expand Down
4 changes: 3 additions & 1 deletion bin/run
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
#!/usr/bin/env -S pkgx +deno bash +exo pipefail

cmd() {
d="$(cd "$(dirname "$0")"/.. && pwd)

deno run -A - <<EoTS
import parse_pkg_str from '../lib/run/parse-pkg-str.ts'
import parse_pkg_str from '$d/lib/run/parse-pkg-str.ts'
import { hooks } from 'pkgx'

const pkg = await parse_pkg_str('$1')
Expand Down

0 comments on commit cf0dfa3

Please sign in to comment.