Background
cmd/lmm/import.go (findCurseForgeMatch near L573, after the lmm import flow) currently picks the first search hit when matching a locally-imported archive against a source's mod list. That works most of the time but can pick the wrong mod when names overlap (e.g. multiple "skyui" variants).
Suggested approach
Score candidates against the local archive metadata (filename basename, embedded version) instead of taking mods[0]. Levenshtein on the normalised name is probably enough; a stricter rule could require the version to also be a substring match.
Originally tracked as a TODO in cmd/lmm/import.go; converted to an issue as part of the Phase 6 cleanup pass.
Background
cmd/lmm/import.go(findCurseForgeMatchnear L573, after thelmm importflow) currently picks the first search hit when matching a locally-imported archive against a source's mod list. That works most of the time but can pick the wrong mod when names overlap (e.g. multiple "skyui" variants).Suggested approach
Score candidates against the local archive metadata (filename basename, embedded version) instead of taking
mods[0]. Levenshtein on the normalised name is probably enough; a stricter rule could require the version to also be a substring match.Originally tracked as a
TODOincmd/lmm/import.go; converted to an issue as part of the Phase 6 cleanup pass.