Skip to content

image-dump-example: write todos.jimg to the project dir, not the cwd - #26

Open
yogthos wants to merge 1 commit into
mainfrom
fix/image-path-project-dir
Open

image-dump-example: write todos.jimg to the project dir, not the cwd#26
yogthos wants to merge 1 commit into
mainfrom
fix/image-path-project-dir

Conversation

@yogthos

@yogthos yogthos commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Under the dev launcher (jolt/bin/jolt), the process cwd is the jolt checkout
(the launcher cd's there so the runtime's relative loads work, stashing the
project dir in JOLT_PWD). A bare "todos.jimg" therefore lands in the jolt
repo instead of the example project — which is exactly where a stray one turned
up during testing.

Resolve the path against JOLT_PWD the same way jolt.main resolves
deps.edn. The release binary runs without the cd and without JOLT_PWD, so
the "." fallback keeps today's behavior there.

Verified under bin/jolt from the example dir: the file is written to the
project dir and not the jolt checkout.

The dev launcher (jolt/bin/jolt) cd's to the jolt checkout so the
runtime's relative loads resolve, passing the original directory as
JOLT_PWD -- a bare relative image path lands in the jolt repo there.
Resolve against JOLT_PWD like jolt.main does for deps.edn; the release
binary has no cd and no JOLT_PWD, so "." stays correct.
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.

1 participant