-
-
Notifications
You must be signed in to change notification settings - Fork 804
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
Sharing dependencies across environments #4451
Comments
PlatformIO does not download dependencies multiple times, it uses a cache for HTTP and binary requests. So, don't worry about this. Regarding common dependencies. You can put them in the |
Hi @ivankravets, I see. However, PlatformIO doesn't seem to cache dependencies from git (private) repositories (I apologise for not mentioning that before), which makes sense but it drastically slows down continuous integration. I am aware of the Would it be able to achieve dependency sharing across environments with Advanced Scripting? |
Yes, https://docs.platformio.org/en/latest/scripting/index.html is the right solution. Just use the PRE script and pre-install dependencies to the Another idea is to use the |
^ I believe something like this was previously mentioned after lib_extra_dirs stopped working with lib_deps in #4206, so in our (espurna) case the only real option now is to manually install everything through the API
|
Thanks, guys. I was considering using |
Hi guys. I ended up going with something like this: platformio.ini:
pre_script.py:
I am happy for this issue to be closed but I still see value in having a feature in platformio to do this. Cheers. |
PlatformIO does seem to want to install multiple versions per environment. With a platformio.ini like this:
And directories like this:
I get an error about a non-shared NeoPixel dependency in
This is after I But |
What kind of issue is this?
Configuration
Operating system: Windows 11 Pro
PlatformIO Version (
platformio --version
): PlatformIO Core, version 6.1.4Description of problem
Hi, I was wondering if it is possible to create a feature to allow sharing dependencies across environments. I have a project with several dependencies with the same version and they end up getting downloaded multiple times.
Steps to Reproduce
pio run
Actual Results
The above command will create:
Expected Results
Something like:
If problems with PlatformIO Build System:
The content of
platformio.ini
:Source file to reproduce issue:
Additional info
The text was updated successfully, but these errors were encountered: