fix(builder): a game folder inside the tools folder is allowed again, so dev.py game builds into build-linux/game #2570
No reviewers
Labels
No labels
area/accessibility
area/audio
area/input
area/install
area/menu
area/mods
area/renderer
area/saves
area/tooling
area/upscaling
beanstalk: approved
beanstalk: failed
beanstalk: needs approval
beanstalk: running
beanstalk: tested
ci: approved
good first issue
gpu/amd
gpu/igpu
gpu/intel
gpu/nvidia
help wanted
kind
bug
kind
chore
kind
docs
kind
feature
kind
performance
kind
question
needs measurements
platform/linux
platform/macos
platform/steam-deck
platform/windows
preview
priority
critical
priority
high
priority
low
regression
risk
high
risk
low
risk
medium
status
blocked
status
confirmed
status
duplicate
status
invalid
status
needs-info
status
wontfix
ci: approved
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/Longshot!2570
Loading…
Reference in a new issue
No description provided.
Delete branch "HumanBean/Longshot:push-txrnouwkspmu"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Since #2286,
python -I scripts/dev.py gamefails on every checkout:The builder's place check refused a game folder and the tools folder when either one is inside the other. For a source checkout, the tools folder is the checkout itself, so
dev.py game'sbuild-linux/gamewas always refused. Only one direction is dangerous: a game folder that holds the tools, since clearing that game folder would take the tools with it. That's still refused. A game folder inside the tools folder is allowed again.Read
builder/crates/build-driver/src/folder.rs(check_places,TOOLS,within) and its use inbuild.rs.Testing
Tested: Linux (CachyOS, RTX 3090).
cargo test -p build-driver --lib folder::passes, 17 tests, including the new cases: a game folder inside the tools folder is allowed, and a game folder holding the tools is refused. The allowed case fails without the fix.dev.py gameonmainwith this fix builtbuild-linux/gamein 33 s (before the fix: refused at once). Thendev.py abplayed that game folder six times in Hyrule Field, about 120 fps, reported on #2286.Still to test: None.
Measurements
Nothing to measure: a check on folders.
Risks
None for players: the launcher's game folders are never inside the builder's own folder. Revert to undo.
Checklist
Ready for review
main; the title is a Conventional Commit.mise run testpasses (any failure that also fails onmainis named). (this PR's CI runs it)main, or Measurements says why there is nothing to measure.third_party/untouched; nothing GPL-incompatible.When it applies
mainand passes here.Assisted-by:/Co-Authored-By:trailers.Ready to merge
main, measured again or a comment says why the numbers still hold.🤖 Generated with Claude Code
https://claude.ai/code/session_017vw8e1RP1VgcWpgA7Kq6ec
Tested in game: Linux (CachyOS), RTX 3090: dev.py game on main with this fix built build-linux/game in 33 s (refused before), then dev.py ab played it six times in Hyrule Field at about 120 fps (#2286's A/B).
c1c88aba86cc3ad05d3ecc3ad05d3e2b4ce4cf7eWIP: fix(builder): a game folder inside the tools folder is allowed again, so dev.py game builds into build-linux/gameto fix(builder): a game folder inside the tools folder is allowed again, so dev.py game builds into build-linux/game