fix(mods): a folder mod named with punctuation gets the same slug as the builder #414

Merged
HumanBean merged 2 commits from HumanBean/LongshotLauncher:fix/mod-slug-punctuation into main 2026-12-03 20:41:49 +00:00
Owner

Adding a folder mod whose name has punctuation next to a space (a player's Fierce Deity Armor + Reskins) fails: its id comes out as local/fierce-deity-armor---reskins, which the manifest check refuses.

pick.rs kept its own copy of the builder's old slug rule. It now uses stable::slug, which already writes one separator per run. This matches the builder fix, MagicBeanDev/Longshot#3112; the refusal itself is the builder's, so players need that one.

One existing test expected zelda--n-code, an id the builder refuses; it now expects zelda-n-code.

Testing (Linux)

  • The new test fails at the test commit and passes with the fix.
  • With the fix, before the old expectation was updated: 406 passed, 1 failed (that expectation), 2 ignored; clippy clean.
  • Rerun with the updated expectation: still queued.
  • cargo fmt --check reports src/update.rs, and mise run lint fails (gitleaks); neither is expected to come from this change, but the main comparison is still queued.
  • The Launcher window was not run.

🤖 Generated with Claude Code

Adding a folder mod whose name has punctuation next to a space (a player's `Fierce Deity Armor + Reskins`) fails: its id comes out as `local/fierce-deity-armor---reskins`, which the manifest check refuses. `pick.rs` kept its own copy of the builder's old slug rule. It now uses `stable::slug`, which already writes one separator per run. This matches the builder fix, https://git.magicbean.dev/MagicBeanDev/Longshot/pulls/3112; the refusal itself is the builder's, so players need that one. One existing test expected `zelda--n-code`, an id the builder refuses; it now expects `zelda-n-code`. ## Testing (Linux) - The new test fails at the test commit and passes with the fix. - With the fix, before the old expectation was updated: 406 passed, 1 failed (that expectation), 2 ignored; clippy clean. - **Rerun with the updated expectation: still queued.** - `cargo fmt --check` reports `src/update.rs`, and `mise run lint` fails (gitleaks); neither is expected to come from this change, but the `main` comparison is still queued. - The Launcher window was not run. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
fix(mods): a folder mod named with punctuation gets the same slug as the builder
Some checks failed
CI / What the change needs (pull_request) Successful in 5s
CI / Lint (actionlint, ShellCheck, gitleaks) (pull_request) Successful in 10s
PR title / Conventional Commit title (pull_request) Successful in 5s
CI / Rust formatting, lint and tests (pull_request) Failing after 59s
CI / Release packages and stable upgrades (pull_request) Failing after 35m46s
0bd76fb6db
pick.rs had its own copy of the builder's old rule, which made "A + B" into
"a---b". stable::slug already follows the new one: use it.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Member

Possibly related, for context:

  • PR MagicBeanDev/Longshot#3112 WIP: fix(modtool): a folder mod named with punctuation imports instead of being refused — Related builder-side slug fix; this launcher change aligns its mod ID rule
Possibly related, for context: - PR MagicBeanDev/Longshot#3112 WIP: fix(modtool): a folder mod named with punctuation imports instead of being refused — Related builder-side slug fix; this launcher change aligns its mod ID rule
HumanBean changed title from WIP: fix(mods): a folder mod named with punctuation gets the same slug as the builder to fix(mods): a folder mod named with punctuation gets the same slug as the builder 2026-12-03 20:41:44 +00:00
HumanBean deleted branch fix/mod-slug-punctuation 2026-12-03 20:41:49 +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!414
No description provided.