Spago 1.0.4 installed via npm fails to do anything on NetBSD:
-bash-5.3$ npx spago build
env: unknown option -- S
Usage: env [-0i] [-C dir] [-u name] [--] \
[name=value ...] [--] \
[utility [arg ...] ]
-bash-5.3$ npx spago --help
env: unknown option -- S
Usage: env [-0i] [-C dir] [-u name] [--] \
[name=value ...] [--] \
[utility [arg ...] ]
-bash-5.3$ npx spago
env: unknown option -- S
Usage: env [-0i] [-C dir] [-u name] [--] \
[name=value ...] [--] \
[utility [arg ...] ]
I tried the version of spago from pkg_src first, but that's the old dhall-spago instead of the current yaml-spago.
I could not find an equivalent to -S in the env(1) man page on NetBSD.
Changing the fix-bundle script in spago's package.json to a no-op, and undoing the change to spago's bin/bundle.js caused the build to succeed:
[641 of 642] Compiling Test.Main
[642 of 642] Compiling Main
Src Lib All
Warnings 0 0 0
Errors 0 0 0
✓ Build succeeded.
-bash-5.3$ grep fix-bundle node_modules/spago/package.json
"fix-bundle": ":",
"bundle": "spago bundle -p spago-bin && npm run fix-bundle",
"prepublishOnly": "spago build && ./bin/index.dev.js bundle -p spago-bin && npm run fix-bundle && ./bin/index.dev.js bundle -p docs-search-client-halogen",
-bash-5.3$ head -n 1 node_modules/spago/bin/bundle.js
#!/usr/bin/env node
Spago 1.0.4 installed via npm fails to do anything on NetBSD:
I tried the version of spago from pkg_src first, but that's the old dhall-spago instead of the current yaml-spago.
I could not find an equivalent to
-Sin the env(1) man page on NetBSD.Changing the
fix-bundlescript in spago'spackage.jsonto a no-op, and undoing the change to spago'sbin/bundle.jscaused the build to succeed: