Files
FFF_vtt_frozen/devbox.json
T
SirStone 30b35592c7 fix: forward -- args through devbox scripts, fail serve loudly (#84)
devbox 0.17.2 runs .devbox/gen/scripts/<name>.sh with the args as positional
parameters but does not append "$@", so tools/serve.sh (and seed, bench,
mutation, import-scale, fogbench) saw an empty argv and a documented
`serve -- --image=...` silently served the default 4096 scene. End every
argument-taking script body with "$@".

serve: --dry-run parses and prints the options without building; unknown
options, non-numeric ports/tile sizes and --tile-size without --image fail
loudly; a no-image start prints the current map read from state.db; NixOS
gets security.pki.certificateFiles instead of the Debian trust steps.

Guard the faults import in worldmap/vision/markers with
`when defined(leakfault)` (it is only used inside those blocks), removing
the three UnusedImport warnings; leakfault builds still compile.

tools/devboxargs.test.mjs goes through `devbox run <script> -- <args>` for
serve (dry-run, unknown flag, tile-size without image) and seed (--help,
unknown flag), the seam the direct-tool tests missed.
2026-11-21 21:35:39 +01:00

60 lines
1.7 KiB
JSON

{
"$schema": "https://raw.githubusercontent.com/jetify-com/devbox/0.17.2/.schema/devbox.schema.json",
"packages": {
"nim": "2",
"nimble": "latest",
"coreutils": "latest",
"gnused": "latest",
"diffutils": "latest",
"gnugrep": "latest",
"nodejs": "26",
"sqlite": {
"version": "latest",
"outputs": [
"out",
"bin"
]
},
"nginx": "latest",
"openssl": "latest",
"chromium": "latest",
"imagemagick": "latest"
},
"shell": {
"init_hook": [],
"scripts": {
"test": [
"tools/test.sh"
],
"e2e": [
"client/e2e/run.sh"
],
"client-test": [
"client/run-tests.sh"
],
"serve": [
"tools/serve.sh \"$@\""
],
"seed": [
"node tools/seed.mjs \"$@\""
],
"mutation": [
"tools/mutation.sh \"$@\""
],
"bench": [
"mkdir -p results; nim c -d:release --hints:off -r tools/bench.nim \"$@\" > results/bench.log 2>&1; rc=$?; cat results/bench.log; exit $rc"
],
"import-scale": [
"mkdir -p results; IMPORT_SCALE=1 node --test --test-concurrency=1 --test-reporter=spec tools/importscale.test.mjs \"$@\" > results/import-scale.log 2>&1; rc=$?; cat results/import-scale.log; exit $rc"
],
"fogbench": [
"mkdir -p results; nim c -d:release --hints:off -o:run/test/fogbench tools/fogbench.nim > results/m4-fog-bench.log 2>&1 && ./run/test/fogbench \"$@\" >> results/m4-fog-bench.log 2>&1; rc=$?; cat results/m4-fog-bench.log; exit $rc"
]
}
},
"env": {
"NIMBLE_DIR": "$DEVBOX_PROJECT_ROOT/.devbox/nimble",
"LD_LIBRARY_PATH": "$DEVBOX_PACKAGES_DIR/lib"
}
}