Skip to content
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

PlatformIO Core 4.4 and the package registry #42

Closed
ivankravets opened this issue Aug 17, 2020 · 10 comments
Closed

PlatformIO Core 4.4 and the package registry #42

ivankravets opened this issue Aug 17, 2020 · 10 comments

Comments

@ivankravets
Copy link
Contributor

Hi Chris,

Thank you so much for your work and that use PlatformIO.

We see you use a legacy packageRepositories at https://github.com/p3p/pio-nxplpc-arduino-lpc176x/blob/release/platform.json#L17

This feature has been removed in the upcoming PlatformIO Core 4.4. We uploaded framework-arduino-lpc176x @ 0.2.4 to the registry.

Would you like to maintain this package later by yourself? There is a new command pio package publish in PIO Core 4.4. We can also transfer current framework-arduino-lpc176x @ 0.2.4 to your PlatformIO Account.

If you have any questions, do not hesitate to contact us.

@ruedli
Copy link
Contributor

ruedli commented Aug 21, 2020

@ivankravets See my update #41 for making Serial3 work for BTT SKR 1.4 Turbo. Would an pull request like this also be preferably solved in the registry as you mention? What is the preferred route for taking care of issues like this?

@ivankravets
Copy link
Contributor Author

Let's wait when @p3p merge it. I'll provide further details.

@p3p
Copy link
Owner

p3p commented Aug 21, 2020

Hey Ivan,

Thanks for bringing the changes you are making to the package system to my attention, I did like being able to control my own package manifest in the custom platform keeping things self contained, whats the reason you are deprecating this feature?

Are there any other changes that will need to be reflected in my nxplpc-arduino-lpc176x platform or the framework?

Would you like to maintain this package later by yourself

It would probably be best if I had control over the package

@ivankravets
Copy link
Contributor Author

Sorry for not replying earlier. Release weeks are always tough.

whats the reason you are deprecating this feature?

There are a lot of reasons, see https://docs.platformio.org/en/latest/core/migration.html#package-management
Mostly, platform maintainers put packages to their servers which are not accessible for other devs. The same when putting packages on Github. Github is blocked in China. So, developers in this case attack us. They think that the problem is with PlatformIO. The solution to this problem is our own trusted registry and whole infrastructure which we built.

We allow anyone to publish a package to our registry and we will guarantee availability for it.

Would you like to maintain this package later by yourself

  1. Please merge Update package.json #44
  2. We've moved this package to your PlatformIO Account p3p. If you forgot a password, please restore it.
  3. If you update this package, just increment the version, change the folder to the root of the package in your terminal and type pio package publish.

@p3p
Copy link
Owner

p3p commented Sep 6, 2020

I can see the fragmentation being an issue, especially with you getting the complaints rather than the platform maintainers, I guess the only downside is now is if your infrastructure goes down rather than githubs the builds will fail ^^. Not sure how Chinese devs handle github being blocked, can't imagine the amount of things that breaks.

Thanks for moving the package, is there a command to list the packages on my account?

@ivankravets
Copy link
Contributor Author

Not sure how Chinese devs handle github being blocked, can't imagine the amount of things that breaks.

See https://github.com/Nuclei-Software/platforma-nuclei/issues/7 . A few hours ago.

is there a command to list the packages on my account?

Yes, you need https://docs.platformio.org/en/latest/core/userguide/access/cmd_list.html

Does it show your packages?

@p3p
Copy link
Owner

p3p commented Sep 7, 2020

Indeed pio access list is what I was looking for

U8glib-ARM
----------
URN:              prn:reg:pkg:1691:library
Owner:            p3p
Access level(s):  Admin

framework-arduino-lpc176x
-------------------------
URN:              prn:reg:pkg:11002:tool
Owner:            p3p
Access level(s):  Admin

The description of the access command must have put me off looking at it closer, expected it under the package.

@ivankravets
Copy link
Contributor Author

Could we improve something?

@p3p
Copy link
Owner

p3p commented Sep 7, 2020

It may be a good idea to have a way to list account packages under the package command, but mostly it was just me not reading the docs well enough and the description for access in the pio command was just Manage resource access which didn't click to me as a way to list packages.

@ivankravets
Copy link
Contributor Author

Thanks! Fixed platformio/platformio-docs@30ff70a

So, I close this issue. Please don't hesitate to contact us for any questions.

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

No branches or pull requests

3 participants