Skip to content

Automatic cleanup of the .pio/libdeps folder doesnt work correctly if lib_deps section is empty #5110

Closed

Description

@sivar2311

If the lib_deps section in platformio.ini is changed and no library is listed anymore, the remaining files/folders in the .pio/libdeps folder are not automatically deleted.

https://www.youtube.com/watch?v=nvsInEBOrr8

I could also observe that other dependencies were listed via symlink whose source had already been deleted are not cleaned up correctly. Unfortunately I was not able to reproduce this for the video.

Related forum discussion: https://community.platformio.org/t/difficulties-understanding-the-right-way-to-include-local-libraries/46558

Activity

  1. added
    LDF
    and removed
    LDF
    on Mar 17, 2025
  2. added this to the 6.1.19 milestone on Mar 17, 2025
  3. added theissue type on Mar 17, 2025
  4. changed the issue type fromtoon May 8, 2025
  5. ivankravets commented on Feb 2, 2026

    @ivankravets
    Member

    Thanks for the issue! Please re-test with pio upgrade --dev.

  6. added a commit that references this issue on Feb 2, 2026
    2fe3ed5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions