Skip to content

@Filename is written with a leading slash, so it reads as an absolute path #198

Done

Description

@Shinrai

@Filename is documented as the file's path relative to the project root, but it's written with a leading /:

src/index.mts  →  @Filename: /src/index.mts

A leading slash makes it an absolute path. It should be src/index.mts.

Existing headers with the slash should be rewritten to the relative form on the next run. That will touch the @Filename line in every file of every repo using fix-headers, so the fleet bump should be header-only and land when repos have no open PRs touching the same files.

Related: #195 / #196 compare a generated .d.mts header's @Filename with its own source path, so they need to handle the slashless form (and the old slashed form during the transition).

Activity

  1. added
    type: bug
    priority: medium
    status: not started
    area: core
    status: in progress
    and removed
    status: not started
    on Nov 25, 2026
  2. added a commit that references this issue on Nov 25, 2026
    f62f16d
  3. added
    status: implemented
    and removed
    status: in progress
    on Nov 25, 2026
  4. cldmv-bot commented on Nov 25, 2026

    @cldmv-bot
    Contributor

    Marked status: implemented — resolved by #199, merged into next. This issue closes automatically when that work ships to the default branch.

  5. added a commit that references this issue on Nov 25, 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

    area: corepriority: mediumstatus: implementedtype: bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions