Skip to content

bend --checkup resolves relative imports beside a symlink #2326

Backlog

Description

@oxura

What you did

src/list.bend imports ./program.bend as P. alias/list.bend is a symlink to ../src/list.bend. Ran bend alias/list.bend --checkup.

What happened

--checkup looks for alias/program.bend and exits 1. bend alias/list.bend --check-only succeeds, and bend src/list.bend --checkup runs src/program.bend. The batch command should use the entry's real directory, like the loader.

bend --version

2.0.40, main at 966bbb74.

uname -sm

Linux x86_64.

clang --version (the first line)

clang version 22.1.8; the repro only uses Bun.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions