-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Transitive public dependency of private npm package not resolved #5288
Comments
Confirming, we also see this on javascript:npm |
Similar issue reported here for gems too, same basic impact (public of private transitive not working). Any general solve? #3461 |
We are also facing the same problem. We have a private package in github npm registry that references packages from npmjs registry. Dependabot, for some reason, tries to resolve npmjs packages via github npm registry. |
We were able to work around this by lowering our lock file to v2 (put this in our npmrc) and then rerunning npm install to get a new lock. v3 (npm 9+) seems to be the issue, but npm 9+ supports v2.
#6507 (comment) was the hint. |
This is probably fixed by #7175. Since Yarn Berry doesn't have @vinassefranche could you confirm this is fixed? |
Package ecosystem
npm
Package manager version
yarn 3.2.0
Language version
node 16
Manifest location and content before the Dependabot update
package.json
dependabot.yml content
We are using GitHub-native Dependabot now, but our project is private so I can't link you to the actual dependabot.yml.
Updated dependency
N/A
What you expected to see, versus what you actually saw
When dependabot tries to find recent versions to create pull requests, it checks for a private dependency (
@inato/logging
stored in https://npm.pkg.github.com), finds it thanks to the registry set independabot.yml
but then fails to find the public sub-dependencyloglevel
because it tries to find it only in https://npm.pkg.gh.neting.ccHere are dependabot's logs concerning the update of eslint (it's the same for all the dependencies)
Tell me if you need more info about the
yarn.lock
orpackage.json
files or something elseNative package manager behavior
N/A but there a no issues when trying to upgrade any dependency locally
Images of the diff or a link to the PR, issue, or logs
The text was updated successfully, but these errors were encountered: