Skip to content

install-user: outside a project the running compiler installs itself, as the help says (#1146) - #2665

Merged
ehartford merged 1 commit into
fix-2268from
fix-1146
Oct 25, 2026
Merged

ehartford merged 1 commit into
fix-2268from
fix-1146

Conversation

@ehartford

@ehartford ehartford commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

Root cause: run_cli (src/main.w) sent install-user to
run_graph_target_command, i.e. run_build_command, which needs a build root:
"'build' requires a source file argument, build.w, or a with.toml project".
A downloaded compiler has no project yet; with --help says "install-user
Install compiler to ~/.local/bin".

With no build root, run_install_self places the running executable
(with_self_exe) at ~/.local/bin/with by the build's own install placement
(build_graph_install_path: temp sibling, rename, <dest> version). Inside
a project the project's install-user target still runs. Delegated (D98):
not interop, ownership or safety; a revert undoes it; prediction 80%.

Test: test/behavior/behav_1146_install_user_outside_a_project.w (HOME is a
temp directory; the installed compiler gives the build error).

Closes #1146

… as the help says (#1146)

Root cause: run_cli (src/main.w) sent `install-user` to
run_graph_target_command, i.e. run_build_command, which needs a build root:
"'build' requires a source file argument, build.w, or a with.toml project".
A downloaded compiler has no project yet; `with --help` says "install-user
Install compiler to ~/.local/bin".

With no build root, run_install_self places the running executable
(with_self_exe) at ~/.local/bin/with by the build's own install placement
(build_graph_install_path: temp sibling, rename, `<dest> version`). Inside
a project the project's install-user target still runs. Delegated (D98):
not interop, ownership or safety; a revert undoes it; prediction 80%.

Test: test/behavior/behav_1146_install_user_outside_a_project.w (HOME is a
temp directory; the installed compiler gives the build error).
@ehartford
ehartford added this pull request to stack #2668 October 25, 2026 22:01
@ehartford ehartford changed the title fix 1146 install-user: outside a project the running compiler installs itself, as the help says (#1146) Oct 25, 2026
@ehartford
ehartford marked this pull request as ready for review October 25, 2026 22:13
@ehartford
ehartford merged commit 0f4276b into main Oct 25, 2026
@ehartford
ehartford deleted the fix-1146 branch October 25, 2026 22:14
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.

with install-user fails outside a With project: "'build' requires a source file argument, build.w, or a with.toml project"

1 participant