Skip to content

pio lib -g uininstall removes source code #1023

@g3rb3n

Description

@g3rb3n

To reproduce this behavior:

mkdir TheLib
mkdir TheLib/src
touch TheLib/src/TheLib.h
touch TheLib/src/TheLib.cpp
touch TheLib/platformio.ini
cd TheLib
pio run
cd ..
pio lib -g install ./TheLib
pio lib -g uninstall TheLib

I would expect my source code to still be under ~/git/TheLib and ~/.platformio/lib/TheLib removed.
But at this stage the source folder ~/git/TheLib is deleted by pio and ~/.platformio/lib/TheLib still exists.

Doing a second
pio lib -g uninstall TheLib
Removes ~/.platformio/lib/TheLib

See: Discussion

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions