platformio / platformio-core

Your Gateway to Embedded Software Development Excellence :alien:
https://platformio.org
Apache License 2.0
7.94k stars 792 forks source link

Make package registry searchable in the CLI or GUI #3836

Closed maxgerhardt closed 2 years ago

maxgerhardt commented 3 years ago

What kind of issue is this?


Configuration

Operating system: Win10 x64

PlatformIO Version (platformio --version): version 5.1.0

Description of Feature Request

I've just noticed this morning that the bintray website (https://bintray.com/platformio/) doesn't contain the tool-packages sub-package in which I was able to search which packages and package versions are available in PlatformIO for e.g. usage in the platform_packages directive in the platformio.ini.

Only using this website I was able to answer a lot of forum questions regarding "How can I upgrade my compiler" or "What package do I need to use for an older mbed-os package" or "why is that package of that version missing" (when the package of another version might be usable).

The CLI doesn't support searching for generic packages, like toolchain-atmelavr, as far as I understand. pio lib search toolchain-atmelavr and pio platform search toolchain-atmelavr both don't list what toolchain-atmelavr package versions are available. I also don't see any other command documented that would do that.

What I would be expecting is that there is a general pio package search or pio registry search command that lets one enumerate available package sources / versions for a given domain, and e.g. even download them.

maxgerhardt commented 3 years ago

Addendum: Per community post I remembered the API page and figured out that a GET query like

https://api.registry.platformio.org/v3/packages/platformio/tool/toolchain-atmelavr

would do what I want, but this is very cumbersome.

ivankravets commented 3 years ago

Yes, we didn't expect this. JFrog closed the Bintray project. We used Bintray as one of our OSS mirrors.

There is a new PlatformIO Trusted Registry that was launched in the summer of 2020. The only missing thing is a frontend for it. We will provide soon. Sorry for the issue.

Meantime, you can use our API 3.0 => https://redocly.github.io/redoc/?url=https://api.registry.platformio.org/v3/openapi.yaml

Search example - https://api.registry.platformio.org/v3/packages?query=type:tool%20atmelavr

ivankravets commented 2 years ago

The GUI and CLI has been implemented: