Skip to content
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

pio lib -g uininstall removes source code #1023

Closed
g3rb3n opened this issue Aug 24, 2017 · 1 comment
Closed

pio lib -g uininstall removes source code #1023

g3rb3n opened this issue Aug 24, 2017 · 1 comment
Labels
Milestone

Comments

@g3rb3n
Copy link

g3rb3n commented Aug 24, 2017

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

@ivankravets ivankravets added this to the 3.5.4 milestone Jun 18, 2018
@ivankravets
Copy link
Member

Thanks, fixed!

ivankravets added a commit that referenced this issue Jun 21, 2018
* hotfix/v3.5.4:
  Fix issue when "platformio lib uninstall" removes initial source code // Resolve #1023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants