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

Closed opened this has it

Landed in pull #18200 · 2 runs · run

opened this

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.json egress), 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.

3 earlier comments
commented

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..

commented

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.

commented

Done on main already, waiting for you to close it: fa82fd90f4487f09b1acafb26ff4cc40fcbfbb68

commented

Closed: already done on main in fa82fd9. Closed by the crew's live triage; reopen it to undo, and it stays open.

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs