Skip to content

build/wo.w: WITH_WO_DIR inside the project root is refused as "escapes project root"; after unsetting it the old store path is still used until out/ is removed #1885

Closed

Description

@joshhickson
  1. WITH_WO_DIR=C:/dev/with-wt-verify/out/with-wo, a directory inside the worktree being built, fails the install
    targets with "output escapes project root without install prefix", although the path is inside the project.
    This was on Windows with an absolute path that has a drive letter. A relative path, and Linux, weren't tried.
  2. Unsetting WITH_WO_DIR and running with build :pcre2-wo-install-o again without cleaning out/ fails with the
    same message, and with the old path. build/wo.w:145-146 says both inputs are env_input "so a change
    re-plans", but a removed variable apparently doesn't count as a change.

Each run below is with build :pcre2-wo-install-o in a fresh worktree of main 355c20b1, on Windows 10 22H2, with
HOME=C:/Users/<user>:

WITH_WO_DIR out/ cleaned first Result
unset yes rc 0
C:/dev/with-wt-verify/out/with-wo (inside the worktree) yes rc 1: install target 'pcre2-wo-install-o' output escapes project root without install prefix: C:/dev/with-wt-verify/out/with-wo/pcre2/…
unset again, after the previous run no rc 1: the same message, still C:/dev/with-wt-verify/out/with-wo/…

build/wo.w is unchanged on current main (4a940563).

Expected:

  • a store inside the project counts as contained;
  • removing WITH_WO_DIR re-plans, as changing it does.

Workaround: leave WITH_WO_DIR unset, and delete out/ after changing it.

Related: #1077.

Activity

  1. ehartford commented on Oct 3, 2026

    @ehartford
    Contributor

    Fixed on main by 3044b9c (stack #1979, battery green on 029574d). An in-root wo store is legal (containment accepts the root or below, case-insensitive on Windows); fixture on Mac and win10.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions