Skip to content

Fix update index on fresh installs #530

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 4 commits into from
Dec 31, 2019
Merged

Fix update index on fresh installs #530

merged 4 commits into from
Dec 31, 2019

Conversation

masci
Copy link
Contributor

@masci masci commented Dec 27, 2019

Fixes #529

On core update-index, with this PR the CLI creates all the directories needed to work properly in case of a first usage with a fresh install.

This was a regression shipped in 0.7.0, now the code is more robust and errors bubble up correctly (no more os.exit from within lower layers).

Copy link
Contributor

@mastrolinux mastrolinux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfectly working, I tested it on WSL and Win32 with the following command
arduino-cli core update-index --additional-urls http://arduino.esp8266.com/stable/package_esp8266com_index.json I removed the file
C:\Users\LucaCipriani\AppData\Local\Arduino15 right before, also tested by removing some partial dirs

@mastrolinux mastrolinux merged commit 9061584 into master Dec 31, 2019
@mastrolinux mastrolinux deleted the massi/529 branch December 31, 2019 10:29
masci pushed a commit that referenced this pull request Dec 31, 2019
* remove error checking on unused proto field, added deprecation comment

* fix typo in function name

* do not os.exit in library code

* create data dir tree if it doesnt exist
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

.arduino15/packages is not a directory
2 participants