Skip to content

Fuzzy-match local imports against source mod list #27

@dyoung522

Description

@dyoung522

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions