mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:30:53 +01:00
[PR #1627] make_game: reject case aliases inside the game directory (MAKE-GAME-CASE-INSIDE-GUARD) #1641
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#1641
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/1627
Author: @KoLolX3
Created: 11/25/2026
Status: 🔄 Open
Base:
main← Head:fix/make-game-case-inside-guard📝 Commits (1)
2af23b9Guard game directory aliases on case-insensitive volumes📊 Changes
2 files changed (+35 additions, -1 deletions)
View changed files
📝
make_game.py(+15 -1)📝
tests/test_make_game_paths.py(+20 -0)📄 Description
Claimed in the coordination issue as: MAKE-GAME-CASE-INSIDE-GUARD (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7154581392)
What and why
On case-insensitive volumes such as APFS, different capitalization can make the output or work directory appear outside the game directory even when it is inside it. Compare destination ancestors by filesystem identity when the lexical check misses, including when the destination does not exist yet. Synthetic tests cover both options, nested future paths, and an unrelated sibling.
Tested
python -I tests/test_make_game_paths.py(6 tests, 2 Windows-only skips)python -I scripts/run_semantic_tests.py tests/semantic(487 files, 6,279 tests, 0 files failed)python -I tests/test_text_write_line_endings.pypython -m compileall -q make_game.py tools tests,python -I make_game.py --help,python -I scripts/check_no_game_data.py make_game.py tests/test_make_game_paths.py, andgit diff --checkGPUs tested: n/a
AI-assisted: yes (OpenAI Codex)
Checklist
mainand merges cleanly.docs/design.md, with how it was confirmed. (Not applicable.)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.