-
-
Notifications
You must be signed in to change notification settings - Fork 398
Json string "version": "1.1.0a" leads to error: "invalid patch version separator 'a'" #920
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
Comments
this is an interesting one, |
The error is caused by the use of a different non-semver version. It's the platform version rather than the tool version from the snippet you posted: "name": "DxCore",
"architecture": "megaavr",
"version": "1.1.0a",
"category": "Contributed", In my tests, I didn't find the non-semver tool version caused any problems, though I certainly wouldn't recommend it.
The non-semver platform version also breaks Arduino CLI 0.11.0, so this is not a regression:
The error in the package index has already been fixed: SpenceKonde/ReleaseScripts#34. Perhaps we can consider making Arduino CLI resilient to this sort of thing. It's fine that non-semver versions are unsupported, but perhaps it would be better to make it just display a warning and otherwise ignore the definitions for the bad platform releases in the package index, rather than having everything come to a screeching halt if you have a package index with a bad version somewhere in it. That appears to be the behavior of the Arduino IDE. When I tried this with the Arduino IDE, the only impact I could see from this issue is that DxCore 1.1.0a is not offered in the Boards Manager version menu. The other releases from the package index can still be used and it causes no problems for general operation. Here's the package index as it was before the fix, to use for reproducing the issue: |
Bug Report
Current behavior
https://github.com/ArminJo/Arduino-OpenWindowAlarm/runs/1023797774?check_suite_focus=true#step:4:42
arduino-cli core update-index --additional-urls http://drazzy.com/package_drazzy.com_index.json > /dev/null
Error updating index: invalid handle
arduino-cli core install ATTinyCore:avr --additional-urls http://drazzy.com/package_drazzy.com_index.json > /dev/null
Error installing: updating the core index: invalid package index in http://drazzy.com/package_drazzy.com_index.json: invalid patch version separator 'a'
The json contains
Expected behavior
as in Version 0.11.0 https://github.com/ArminJo/Arduino-OpenWindowAlarm/runs/716439332?check_suite_focus=true#step:4:38
Environment
The text was updated successfully, but these errors were encountered: