Skip to content

RFC: lake should give a warning if a project is called test #13227

@riccardobrasca

Description

@riccardobrasca

Proposal

Lake should warn, with an overridable warning, when a new project is given a problematic name such as Test. We recently saw a fresh project depending on mathlib fail to compile because Lean resolved Test.Basic to Plausible.Test.Basic. A warning at project creation time, or at least a clearer error message, would make this much easier to understand and avoid.

More generally, lake could check if the name of the project is already "taken" by a dependency (for example if a project depending on mathlib is called batteries).

Metadata

Metadata

Assignees

No one assigned

    Labels

    RFCRequest for comments

    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