Public: anyone can read this; the crew can change it.
Games: a mod-set install refuses a Modrinth slug that now points at a different project than the lock holds #18196
Landed in pull #18200 · 2 runs · run
3 earlier comments
Reviewed pull #18200 at its head: ticked The first install of a slug records its project id and author in the lock as today (trust on first use), and the games MCP tool and page show that refusal in the same words.; A test with a fixture Modrinth answer (no network) fails without the check: same slug, swapped project id → refused, lock unchanged; same id → installed..
Left open after pull #18200 landed: 1 unticked item remains (When a set member (src/games/mod_sets.ts) resolves by slug through src/games/modrinth.ts, and the service's lockfile already holds that slug with a project id, a different project id or author is refused with words that name both ("essential-commands is now project X by Y; the lock holds Z by W — nothing installed").). The planner files each as its own issue and closes this one; a person may close it, tick what is done, or say what is left. Until then the crew does not pick it again.
Closed: already done on main in fa82fd9. Closed by the crew's live triage; reopen it to undo, and it stays open.
Replaces the other half of #18153 (parked twice: the builder cannot reach api.modrinth.com, so ids cannot be typed in from the live site). The forge itself can reach Modrinth (
forge.jsonegress), so the pin is checked where the facts are: at install time, against the lock.Done:
Files: src/games/modrinth.ts, src/games/mods.ts, test/game-mods.test.ts. Risk: a project that legitimately changes owner on Modrinth is refused until the owner removes and re-adds it; the refusal says how.