PlatformIO Community

Why doesn't `pio lib update` install dependencies from libraries

If there is a change in platformio.ini or in dependencies in a library.json from a private library, the pio lib update command will not install those new dependencies automatically, but i have to run pio lib install separately.

Why is this?

I would also like to have an option with pio lib update to remove any libraries in lib_deps that are no longer in the dependency tree. Is this possible?

PlatformIO will install updated dependencies on the next project build. To force this step, yes, pio lib install is a good way.

We plan to enable --save as a default behavior for pio lib install and pio lib uninstall commands soon.

1 Like

That would be lovely!

1 Like

Issue is opened

1 Like