Skip to content

fix: validate cache paths before building from extracted folders - #1397

Merged
hckrman101 merged 1 commit into
NotRexed:mainfrom
JooaoPedro15:fix/guard-extracted-build-cache
Nov 10, 2026
Merged

hckrman101 merged 1 commit into
NotRexed:mainfrom
JooaoPedro15:fix/guard-extracted-build-cache

Conversation

@JooaoPedro15

Copy link
Copy Markdown
Contributor

The Builder validates the output ROMFS and retained ExeFS cache paths for NUP builds and updates. When the source is an extracted folder pair, it skips the ROMFS check and checks retained ExeFS only after it has already started copying. A redirected output ROMFS folder can therefore receive writes through a Windows junction.

Use the existing cache guard for both destinations before copying or unpacking the selected folders. The game-free regression simulates a Windows reparse point and verifies that both input modes stop before staging ExeFS or changing cached files.

python3 -I -B tests/run_all.py --strict make_game_cache passed on macOS. This change is independent of #1395 and the two patches merge cleanly.

AI assistance from OpenAI Codex is recorded in the commit trailers.

Use the existing cache path guard for both ROMFS and retained ExeFS before copying or unpacking inputs. Extend the game-free regression to cover a Windows reparse point with both source modes.

Assisted-by: OpenAI Codex
Co-Authored-By: Codex <noreply@openai.com>
@NotRexed

Copy link
Copy Markdown
Owner

This landed in the v2.0.12 branch (merged there for testing; it reaches main with that release), so closing. Thanks!

@NotRexed NotRexed closed this Nov 10, 2026
@NotRexed

Copy link
Copy Markdown
Owner

Reopened: closing this was a mistake on my side. It was tested in the v2.0.12 branch, and it will be merged into main here, so it shows as merged. Sorry for the noise.

@NotRexed NotRexed reopened this Nov 10, 2026
@hckrman101
hckrman101 merged commit 6017d24 into NotRexed:main Nov 10, 2026
22 checks passed
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.

2 participants