Skip to content

Own schemas only through package::, parent:: or self:: #282

Closed

Description

@Kinflou

Part of #281. Proposal: ComlineProject/docs#178 (accepted in docs#181), relative paths.

  • The resolver: it reads an absolute first segment of a use as std or a dependency only.
  • The error: a bare path that reaches one of the package's own schemas is an error at once, not "no schema matches". It comes with a fix that rewrites the path to package::…, together with the qualified references the import brought in. A new diagnostic code goes in the specification's catalog.
  • comline fix: it applies the rewrite across the package (CLI side tracked separately).
  • Reserved names: std, package, parent and self stay reserved as dependency names (reserved_dependency_name).
  • Fixtures and std: update core's own fixtures and test packages, and std, if any of them use bare own-schema paths.
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

    breaking-changeBreaks an API, generated code or wire bytescompilerParser, IR, CASdiagnosticsErrors and diagnostics

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions