I am curios to know if libraries will automatically get updated whenever I build a project if the respective libraries are specified inside platformio.ini.
I would not want my library’s updating without my express permission, Imagine a library update that broke your code just before you compiled an update that you OTA’d onto thousands of customer units!
I think you are right. It did happen to me once. I tried using the /stage version of the platform and it broke my code.
I don’t know how I wasn’t able to think of that…
No, they won’t. They (libraries - and platforms) will download the first time automatically if not present. Otherwise, they remain at their current version unless you specifically run the ‘update libraries’ command. Having them update will never be an issue if you use the @version syntax in your lib_deps - as then PlatformIO will only ever install the specifically mentioned version of the library.
i.e. I have a preference to using the ID instead of name just incase PlatformIO ever gets confused. but for this project I have locked in a git commit version, and version numbers of two other libraries…