Skip to content

One-liners build in the user cache, so with -e leaves no out/ in the current directory (#2354) - #2655

Merged
ehartford merged 1 commit into
fix-2355from
fix-2354
Oct 25, 2026
Merged

ehartford merged 1 commit into
fix-2355from
fix-2354

Conversation

@ehartford

@ehartford ehartford commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

Root cause: run_one_liner_command (src/main.w) built into the default
WITH_OUT_DIR, which resolves under the current directory, so every one-liner
created out/tmp/with_runtime where it ran.

The one-liner's binary and work directory live under
with_user_cache_dir()/with/one-liners (cli_one_liner_out_dir). WITH_OUT_DIR
is set for the build when unset and restored before the program runs.

Test: test/behavior/behav_2354_one_liner_leaves_no_out_dir.w (runs a
one-liner in a temp directory and finds no out/ there).

Closes #2354

…e current directory (#2354)

Root cause: run_one_liner_command (src/main.w) built into the default
WITH_OUT_DIR, which resolves under the current directory, so every one-liner
created out/tmp/with_runtime where it ran.

The one-liner's binary and work directory live under
with_user_cache_dir()/with/one-liners (cli_one_liner_out_dir). WITH_OUT_DIR
is set for the build when unset and restored before the program runs.

Test: test/behavior/behav_2354_one_liner_leaves_no_out_dir.w (runs a
one-liner in a temp directory and finds no out/ there).
@ehartford
ehartford added this pull request to stack #2658 October 25, 2026 21:47
@ehartford ehartford changed the title fix 2354 One-liners build in the user cache, so with -e leaves no out/ in the current directory (#2354) Oct 25, 2026
@ehartford
ehartford marked this pull request as ready for review October 25, 2026 21:59
@ehartford
ehartford merged commit 1869e6f into main Oct 25, 2026
@ehartford
ehartford deleted the fix-2354 branch October 25, 2026 21:59
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.

One-liners create out/tmp/with_runtime in the current directory (the project-link half is fixed)

1 participant