Skip to content

fix(windows): centralize daemon and cache paths for long-path fallback #2173

Done

Description

@zackees

Context

With Windows long paths disabled, the startup resolver chooses short cache, scratch, and build roots, but daemon files still resolve under the normal home directory. The ESP32 extraction failure under the current fallback is tracked in #2156.

Proposal

Use C:\fbuild-cache as the Windows fallback base. Derive daemon, cache, scratch, and redirected build locations through the existing path resolver. Preserve per-user and dev/prod isolation, safe directory ownership, and explicit override behavior. Keep frontend and daemon endpoint discovery consistent through startup, shutdown, and a successful long-path repair.

Acceptance criteria

  • Reproduce the current path mismatch with a focused failing test, then show that the same test passes with the centralized layout.
  • Exercise a fresh standard-user Windows session with long paths disabled, including daemon startup, discovery and shutdown. Check a second user and dev/prod for collisions, and cover inaccessible or preexisting directories.
  • Cover existing fallback markers and the transition back to long paths enabled. Verify the normal layout when fallback has never been active.
  • Coordinate the path budget and cold-cache ESP32-S3 install/build verification with Windows with long paths off (the default): no ESP32 build can install its packages #2156.
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

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions