sonatype-nexus-community / nexus-repository-composer

Composer support for the Nexus Repository Manager (work in progress!)
Eclipse Public License 1.0
214 stars 81 forks source link

Composer 2 / Packagist API v2 compatibility #93

Closed func0der closed 2 years ago

func0der commented 3 years ago

https://blog.packagist.com/deprecating-composer-1-support/ https://packagist.org/apidoc

Packagist proxy might stop working properly in the next weeks, because packages are cancelled out in the v1 api of Packagist.

There should be a migration to the new api.

Secondly since the new api is for the new composer version, we might need a parallel endpoint for those calls. This would result in no breaking changes for on-going users and a clear path for the new proxy.

Though I think, those might be different projects/issues. Any input on this from the project maintainers?

eplightning commented 3 years ago

I have some basic support for V2 in my fork (https://github.com/eplightning/nexus-repository-composer/commit/4d64b155a798ff512de3b571c8c1d48358796125) in case someone needs it

Both V1 and V2 are supported but there's no conversion between them - so if there are packagist packages only visible for V2 users then only V2 clients will see them in Nexus as well.

glukkkk commented 3 years ago

I have some basic support for V2 in my fork (eplightning@4d64b15) in case someone needs it

Both V1 and V2 are supported but there's no conversion between them - so if there are packagist packages only visible for V2 users then only V2 clients will see them in Nexus as well.

It works well! You should better make a PR with your commit here. Hope they will accept it!

func0der commented 2 years ago

I opened the PR for him. I hope we get that feature merged some time soon.