-
-
Notifications
You must be signed in to change notification settings - Fork 398
Package index filename is truncated if it contains .
#2345
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
Labels
conclusion: resolved
Issue was resolved
topic: code
Related to content of the project itself
type: imperfection
Perceived defect in any part of project
Comments
6 tasks
Merged
ladyada
added a commit
to adafruit/ci-arduino
that referenced
this issue
Oct 29, 2023
platisd
added a commit
to platisd/nokia-5110-lcd-library
that referenced
this issue
Nov 22, 2023
A number of factors contributed to the build being broken: - ATtinyCore tool dependency on micronucleus-cli-2.5-azd1-x86_64-linux-gnu.tar.bz2 is hosted on a website with an expired certificate - Using an older version of the platform which uses the older tool version, hosted on a different website that still works - The latest arduino-cli release contains a bug (arduino/arduino-cli#2345) which fails to download the ATtinyCore additional board packages
platisd
added a commit
to platisd/nokia-5110-lcd-library
that referenced
this issue
Nov 22, 2023
A number of factors contributed to the build being broken: - ATTinyCore tool dependency on micronucleus-cli-2.5-azd1-x86_64-linux-gnu.tar.bz2 is hosted on a website with an expired certificate - Using an older version of the platform which uses the older tool version, hosted on a different website that still works - The latest arduino-cli release contains a bug (arduino/arduino-cli#2345) which fails to download the ATTinyCore additional board packages
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
conclusion: resolved
Issue was resolved
topic: code
Related to content of the project itself
type: imperfection
Perceived defect in any part of project
Describe the problem
If the filename of a package index contains the character
.
, Arduino CLI truncates the downloaded filenameTo reproduce
🐛 The downloaded package index was named
package_drazzy.json
instead of the correct namepackage_drazzy.com_index.json
🐛 The platforms from the package index can't be installed because the truncation caused the file to no longer have the required filename format (
package_<differentiator>_index.json
).Expected behavior
The filenames of package index files are not changed on download.
Arduino CLI version
6aa1be0
Operating system
Operating system version
Additional context
I bisected the regression to 82e6f5d (doesn't occur when using the build from the previous commit 1877431).
The use of a full domain name in the package index filename is explicitly recommended in the Arduino Package Index Specification:
https://arduino.github.io/arduino-cli/dev/package_index_json-specification/#naming-of-the-json-index-file
Originally reported at SpenceKonde/ATTinyCore#803 (comment)
Additional reports
Related
Issue checklist
The text was updated successfully, but these errors were encountered: