-
-
Notifications
You must be signed in to change notification settings - Fork 795
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
Package publish rejects the package #3828
Comments
Judging from platformio-core/platformio/clients/registry.py Lines 44 to 46 in c623a6a
and platformio-core/platformio/package/meta.py Lines 54 to 66 in c623a6a
and platformio-core/platformio/package/manifest/parser.py Lines 34 to 39 in c623a6a
The logic whereit fails is that it can't decide whether it's a library, platform, or tool. And that is decided by the package having a The e.g. https://github.com/earlephilhower/esp-quick-toolchain/releases/download/3.0.0-newlib4.0.0-gnu22/x86_64-linux-gnu.xtensa-lx106-elf-48f7b08.210128.tar.gz file has .. as a direct first thing a folder, not the files directly. Only in there Is the file we're looking for. So I think the bug here is that the archive file contains a folder which contains all the files, but it should contain all the files directly. Bug in the generation logic. |
Afaik, archive structure is made to be compatible with ArduinoIDE's downloader, as these archives are also used as-is here when tagged version is released: So, the gist is:
|
Oh well handy that such a |
So, and where is the issue? I'm not sure that I understand what is going wrong. There is PlatformIo Registry with its own rules, and there 3rd party archives that are not compatible. Is it correct? |
Package archive above do not contain |
This is normal behavior. It is a popular practice to put files in the interim folder to avoid issues with ZIP archive that has issues with putting files in the root. It is common practice to ship libraries in ZIP archives and put |
...so shouldn't we be able to publish an archive with Hence the comments about the |
Aha, now I understand. Yes, it seems like an issue. Thanks for the report! We will think about providing lightweight solution for this. |
Configuration
Operating system:
Windows 20H2
PlatformIO Version (
platformio --version
):PlatformIO Core, version 5.1.0
Description of problem
Following up on the #3776
After downloading release files from:
https://github.com/earlephilhower/esp-quick-toolchain/releases
I have not tried to 'repackage', like before, since I assumed this method of directly uploading .tar.gz or .zip should work now.
Additional info
package.json
is generated here:https://github.com/earlephilhower/esp-quick-toolchain/blob/48f7b08d1679365ea462675dd3bfb9d83c9bf11a/Makefile#L280-L290
The text was updated successfully, but these errors were encountered: