Details
Description
Trying to create a proxy for npm.pkg.github.com, but Nexus does not work because it tries to pull the version from the tarball URL, and GitHub's URL is different than npmjs (see below return of npm.pkg.github.com).
Here's an example of what happens on lookup:
2020-04-30 03:26:56,669+0000 DEBUG [qtp1377384231-44] admin org.sonatype.nexus.repository.storage.ComponentEntityAdapter - Finding components with query: select from component where (name = :p0 AND group = :p1 AND version = :p2) and (bucket=#18:3), parameters: {p0=my-package, p1=my-scope, p2=}
And the component that gets created:
{ "id": "bnBtLWdpdGh1Yjo5M2I5YjllYjlhN2VjYjA2ZjY2YzIzOTZjNGMyOTJmZA", "repository": "npm-github", "format": "npm", "group": "my-scope", "name": "my-package", "version": "", }
The return from npm.pkg.github.com:
"dist": { "tarball": "https://npm.pkg.github.com/download/@my-scope/my-package/1.0.0/fefec00003ec843faf348871f940dc5a0a4bfe56fd1d6c9678f7609533038489" },
So it will work initially, creating a component with an empty version, but will not be able to look up/create other versions because it supports only a null version.
Attachments
Issue Links
- relates
-
NEXUS-28591 Support proxying of S3 backed remotes such as Git Package Registries
-
- New
-
-
NEXUS-25605 NuGet proxy repos to github package registry can fail query requests when accessed in a group repository
-
- Closed
-
-
NEXUS-29286 Support for Github Package Registry not fixed
-
- Closed
-