Skip to content

rust: validate entity names and source directories before generation #965

Closed

Description

@athvin

Evidence

Catalog::from_entities rejects duplicate store-qualified relations but allows duplicate entity names; load_dir overwrites source text by name and generation targets colliding module paths. The loader also accepts a YAML name different from its directory, so standalone verification can miss statements in the actual folder. A separate make check tree test catches only the committed-tree mismatch. Source.

Change

Reject duplicate entity names and name/directory mismatches at catalog loading, before lint, SQL discovery, or generation.

Done when

  • Two different relations with one entity name fail validation.
  • A YAML name differing from its directory fails er-entity verify with a useful path.
  • The current entity tree still verifies.

Activity

  1. added
    code-cleanup
    on Nov 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    code-cleanup

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions