Skip to content

"core install" needs "core update-index" to be run first #1

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

Closed

Conversation

hlovdal
Copy link

@hlovdal hlovdal commented Dec 26, 2022

Starting on a new machine, just running core install will fail.

Also a couple of readme updates. If you want me to separate that out to a different pull request I can do that.

@hlovdal
Copy link
Author

hlovdal commented Dec 26, 2022

I pushed some more updates I had lying around, again let me know if you instead want to have them separately.

@hlovdal hlovdal force-pushed the 2021-02-15_rescue.updates branch from 2d7e268 to 8179c34 Compare December 26, 2022 22:28
ianfixes and others added 8 commits December 28, 2022 07:55
Running

    $HOME/arduino-cli --format json core install adafruit:avr --additional-urls https://adafruit.github.io/arduino-board-index/package_adafruit_index.json

for the first time fails with error message

    Error initializing instance: Loading index file: loading json index file $HOME/.arduino15/package_adafruit_index.json: open $HOME/.arduino15/package_adafruit_index.json: no such file or directory
    Error initializing instance: Loading index file: loading json index file $HOME/.arduino15/package_adafruit_index.json: open $HOME/.arduino15/package_adafruit_index.json: no such file or directory
    Invalid argument passed: Found 0 platform for reference "adafruit:avr":

However by running an update-index command first, then it succeeds, e.g.

    $HOME/arduino-cli --format json core update-index --additional-urls https://adafruit.github.io/arduino-board-index/package_adafruit_index.json
    $HOME/arduino-cli --format json core install adafruit:avr --additional-urls https://adafruit.github.io/arduino-board-index/package_adafruit_index.json

https://arduino.github.io/arduino-cli/0.29/getting-started/#adding-3rd-party-cores
@hlovdal
Copy link
Author

hlovdal commented Dec 29, 2022

Closed since the target branch is merged. The source branch has been rebased and updated for merges to later commits.

@ianfixes
Copy link
Owner

Hmm, I don't think I got any notifications about this. Can you open a branch with this PR against this main project instead?
https://github.com/Arduino-CI/arduino_ci

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants