fix(cache): resolve linked builder download locations #306

Merged
HumanBean merged 1 commit from HumanBean/LongshotLauncher:fix/builder-cache-symlink into main 2026-11-27 18:23:45 +00:00
Owner

Builder downloads could stop when the configured cache path passed through a symlink. The Settings page also offered a Default reset when the folder already used the default location.

  • Resolve the configured cache path before checking the launcher-managed download directories. If a managed directory is linked, show its path in the error.
  • Show Default only when the effective data, version library, or cache location differs from its default. A retained legacy cache can still be reset from Settings.

Testing

  • Ran the launcher test suite, locked Clippy, formatting, and Tooling's release tests.
  • Exercised a builder download fixture through a linked cache parent and verified that a linked managed version directory is refused with its path.
  • Ran the native Linux window smoke tests. Verified that Default is hidden for a fresh cache, appears for a retained legacy cache, and disappears after resetting the legacy cache. Screenshots are in the thread.
Builder downloads could stop when the configured cache path passed through a symlink. The Settings page also offered a **Default** reset when the folder already used the default location. - Resolve the configured cache path before checking the launcher-managed download directories. If a managed directory is linked, show its path in the error. - Show **Default** only when the effective data, version library, or cache location differs from its default. A retained legacy cache can still be reset from Settings. ## Testing - Ran the launcher test suite, locked Clippy, formatting, and Tooling's release tests. - Exercised a builder download fixture through a linked cache parent and verified that a linked managed version directory is refused with its path. - Ran the native Linux window smoke tests. Verified that **Default** is hidden for a fresh cache, appears for a retained legacy cache, and disappears after resetting the legacy cache. Screenshots are in the thread.
fix(cache): resolve linked builder download locations
Some checks failed
CI / What the change needs (pull_request) Successful in 16s
CI / Lint (actionlint, ShellCheck, gitleaks) (pull_request) Successful in 34s
PR title / Conventional Commit title (pull_request) Successful in 15s
CI / Rust formatting, lint and tests (pull_request) Successful in 8m33s
CI / Release packages and stable upgrades (pull_request) Failing after 1h0m3s
52a4ff7d99
Assisted-by: OpenAI Codex
Author
Owner

Settings → Game on Linux with synthetic launcher folders.

Fresh install

The default cache path with only the Change button

Retained legacy cache

The legacy work path with Default and Change buttons

After clicking Default

The new cache path with only the Change button

Settings → Game on Linux with synthetic launcher folders. **Fresh install** ![The default cache path with only the Change button](https://git.magicbean.dev/attachments/08afd5da-1cdf-4277-9580-ec6379e84e1a) **Retained legacy cache** ![The legacy work path with Default and Change buttons](https://git.magicbean.dev/attachments/a4ff3540-8ea8-4048-9a37-ae6cf1c0993d) **After clicking Default** ![The new cache path with only the Change button](https://git.magicbean.dev/attachments/27318c87-d239-4d89-a3f0-e1b7a8594c8c)
Member

Possibly related, for context:

  • PR MagicBeanDev/Longshot#2671 fix(builder): a verbatim --cache is taken in its plain spelling — Merged builder cache-path normalization; related path handling context
Possibly related, for context: - PR MagicBeanDev/Longshot#2671 fix(builder): a verbatim --cache is taken in its plain spelling — Merged builder cache-path normalization; related path handling context
HumanBean changed title from WIP: fix(cache): resolve linked builder download locations to fix(cache): resolve linked builder download locations 2026-11-27 18:23:14 +00:00
HumanBean deleted branch fix/builder-cache-symlink 2026-11-27 18:23:46 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
MagicBeanDev/LongshotLauncher!306
No description provided.