Closed cujomalainey closed 6 years ago
Thanks! I'll take a look on that very soon! Temporary solution:
platformio ci --lib="." --project-option="lib_deps=ANT" --board=teensy31
See http://docs.platformio.org/en/latest/userguide/cmd_ci.html#cmdoption-platformio-ci-o
Is this platformio lib install file://.
command mentioned in any documentation? Cause I didn't see it anywhere and this issue here is the only place I made a find.
@r41d I removed my comment. What is your use case? Could you put your dependencies to the lib_deps
?
See https://docs.platformio.org/en/latest/librarymanager/dependencies.html
I'm currently in the process of migrating a library (ClusterDuck-Protocol) from dependencies via git submodules to dependencies, this has to be done for both Arduino IDE (library.properties
) and PlatformIO (library.json
).
Basically, I'm inside the library folder and want to fetch alle dependencies that are listed in library.json
If you plan to use your library later with the PlatformIO project, PlatformIO will resolve all dependencies. You don't need to install them manually.
Please note that you can "symlink" your library in PlatformIO ( https://docs.platformio.org/en/latest/core/userguide/pkg/cmd_install.html#local-folder ) instead of hard copying.
Thanks for the tip.
To better my understanding, would a platform.io
like this actually belong in a library?
Does the platform.io
in my project inherit from it?
Configuration
Operating system: OSX 10.12
PlatformIO Version (
platformio --version
): 3.4.1Description of problem
Library Dependencies are not fetched when running CI
Steps to Reproduce
pio ci
on a library with a dependency sectionActual Results
Dependency is not fetched and dependencies are not met therefore build fails. Installing the library via pio lib install gets the dependent library. https://travis-ci.org/cujomalainey/antplus-arduino/jobs/276188370
Expected Results
Dependencies should be fetched for CI
If problems with PlatformIO Build System:
The content of
platformio.ini
:Source file to reproduce issue: https://github.com/cujomalainey/antplus-arduino
Additional info