-
-
Notifications
You must be signed in to change notification settings - Fork 795
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Depencies of local libraries are not installed automatically #2910
Comments
Thanks for the great report. There is an issue for that #2573 We plan to fix it soon. |
Please re-test with |
Dependencies of libraries in But if the dependency is already present in the /lib folder, then it still is downloaded into Example: Started with an empty |
It fixes my #2573 (comment) scenario 1. As mentioned above it will conflict with scenario 2 from the same comment (but I don't mix both of these at the same time). I'm not sure how to specify the expected behaviour for this problem in a way that can be implemented. The |
Thanks for the report. Please re-test with |
After When trying to build the project with one of the dependencies downloaded in the /lib folder, it downloads that same library into
Alos, when adding a lib to the |
Thanks for the report! Please re-run |
Yes, the correct behavior for 3rd party dependencies. See the migration guide to the PlatformIO 6.0 https://docs.platformio.org/en/latest/core/migration.html and avoid Git and external sources. |
Configuration
Operating system: Ubuntu 18.04
PlatformIO Version (
platformio --version
): 4.0.1b3Description of problem
If I have a local library (in
lib/
) with alibrary.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
.pio
directory to remove any cached installationslib/
that has an external dependency that is not used by the project itselfActual 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 libraryuuid-log
(specified in the library.json file) has not been automatically installed.Running in verbose mode results in the following message:
The text was updated successfully, but these errors were encountered: