You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for the detailed bug report / investigation.
I'm not super familiar with the npm ecosystem, but your explanation makes sense.
How do you suggest tweaking the extraction logic to reliably extract the correct path? 👈 might be easiest to propose as a PR actually so that we're discussing actual code...
Is there an existing issue for this?
Package ecosystem
npm
Package manager version
No response
Language version
6
Manifest location and content before the Dependabot update
No response
dependabot.yml content
I am using dependabot core directly
Updated dependency
No response
What you expected to see, versus what you actually saw
When a dependency is declared in a private registry such as :
The registry detection detects the registry as
https://myRegistry/
when it should detect the full URIhttps://myRegistry/api/npm/npm/
That results in 404 errors when the updater tries to query
https://myRegistry/
instead of the expectedhttps://myRegistry/api/npm/npm/
Likely offending code:
dependabot-core/npm_and_yarn/lib/dependabot/npm_and_yarn/file_fetcher.rb
Line 104 in 30f9e40
One solution for now, is to explicitly declare the registry using
.npmrc
Native package manager behavior
No response
Images of the diff or a link to the PR, issue, or logs
{"error":"404 Not Found - GET https://myRegistry/cors"}
Smallest manifest that reproduces the issue
Run the registry detection using a private registry like this:
The text was updated successfully, but these errors were encountered: