Skip to content

Depencies of local libraries are not installed automatically #2910

@nomis

Description

@nomis

Configuration

Operating system: Ubuntu 18.04

PlatformIO Version (platformio --version): 4.0.1b3

Description of problem

If I have a local library (in lib/) with a library.json file, its dependencies are not downloaded and installed automatically. Dependency resolution then fails (but this warning is hidden behind the verbose setting).

Steps to Reproduce

  1. Delete the .pio directory to remove any cached installations
  2. Put a library in lib/ that has an external dependency that is not used by the project itself
  3. Execute a build in verbose mode

Actual Results

The external dependency is "ignored" because it doesn't exist. The dependency graph shows the library without its dependency.

Expected Results

The dependency of the library is downloaded and the dependency graph works correctly.

Additional info

If the dependency has been downloaded to the .pio/ directory then dependency resolution works because the library can be found.

The projects in the test directory of nomis/mcu-uuid-log 2.0.1 will fail to build because the dependency uuid-common of local library uuid-log (specified in the library.json file) has not been automatically installed.

Running in verbose mode results in the following message:

Warning: Ignored `uuid-common` dependency for `uuid-log` library

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions