Skip to content

Nim incorrectly import/include files relative to the destination of a symlinked file #6543

@jxy

Description

@jxy
mkdir d
cat >d/t.nim<<E
import m
echo c
E
cat >d/m.nim<<E
const c* = "from d"
E
ln -s d/t.nim .
cat >m.nim<<E
const c* = "outside of d"
E
nim c -r t

The output is from d, while I would expect the output should be outside of d.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions