Skip to content

fix(build): create dist/ before running pslua backend#2

Merged
Unisay merged 1 commit into
masterfrom
fix/assert-build
Jun 14, 2026
Merged

fix(build): create dist/ before running pslua backend#2
Unisay merged 1 commit into
masterfrom
fix/assert-build

Conversation

@Unisay

@Unisay Unisay commented Jun 14, 2026

Copy link
Copy Markdown
Collaborator

Closes #1

scripts/build ran spago build, which invokes the pslua backend from spago.dhall with --lua-output-file dist/Test_Assert.lua. pslua opens that file with withFile WriteMode, which does not create parent directories. dist/ is gitignored and absent on a fresh checkout, so the build failed with dist/Test_Assert.lua: withFile: does not exist.

Fix: mkdir -p dist before spago build so the output directory always exists, matching the intent of the sibling Lua forks. Minimal and self-contained; no CI or normalization changes bundled.

Verified: nix develop -c ./scripts/build now exits 0 and writes dist/Test_Assert.lua.

scripts/build ran spago build, which invokes the pslua backend from
spago.dhall with --lua-output-file dist/Test_Assert.lua. pslua opens
that file with withFile WriteMode, which does not create parent
directories. dist/ is gitignored and absent on a fresh checkout, so the
build failed with 'dist/Test_Assert.lua: withFile: does not exist'.

Create dist/ with mkdir -p before spago build so the output directory
always exists, matching the intent of the sibling Lua forks.

Closes #1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

scripts/build fails: dist/ output directory not created before pslua writes to it

1 participant