Skip to content

Unity header not found when using symlink #5144

@jcw

Description

@jcw

When I have a project with libdeps = jcw/jeeh in it, and run tests based on Unity, the dependency shows as:

Found 2 compatible libraries
Scanning dependencies...
Dependency Graph
|-- JeeH @ 7.0.0 (License: Unlicense, Path: /Users/jcw/code/jee/jeeh/boards/.pio/libdeps/f103r/JeeH)
|-- Unity @ 2.6.0 (License: MIT, Path: /Users/jcw/code/jee/jeeh/boards/.pio/libdeps/f
Building in test mode

But when I use lib_deps = symlink://.., then the unity.h header is not found, and dependencies show as:

Found 2 compatible libraries
Scanning dependencies...
Dependency Graph
|-- JeeH @ 7.0.0 (License: Unlicense, Path: /Users/jcw/code/jee/jeeh)
Building in test mode

Compilation then fails. It looks like some information got lost in the symlink case?

(PIO CLI 6.1.18, macOS)

Update: note that there are also some upper/lowercase differences (macOS FS is case-insensitive).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions