-
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
Dependabot doesn't update to latest pre-release version #6741
Comments
Thanks for letting us know about this! Can you create a public repository that illustrates the problem? |
Sure, I'll try to set up an example that reproduces the problem in a public repository. |
If I'm reading this right, that is returning a |
I set up an example package jpaakko/create-react-app-dependabot-test and a public repository jpaakko/dummy-dependabot-project that reproduce the problem. The example package uses a similar versioning scheme as what we use in the private project where we originally stumbled upon the problem. To illustrate the problem, I published a couple of different versions of the example package to GitHub's package registry: https://github.com/jpaakko/create-react-app-dependabot-test/pkgs/npm/react-scripts. As can be seen from this open Dependabot PR, Dependabot successfully managed to update from version
So, for some reason Dependabot concludes that the latest version is
|
Good observation! As you said, this isn't related to this problem but is odd indeed. We use Nexus as our private npm package registry. I wonder whether the response could be a cause of some kind of a misconfiguration on our instance. We'll have to look into this. |
We are seeing the same behavior with a different dependency, which is also a pre-release. This is our Dependabot config: version: 2
updates:
- package-ecosystem: npm
directories:
- "/"
labels: [ ]
schedule:
interval: daily
versioning-strategy: increase
ignore:
- dependency-name: "@middy/core"
update-types: [ "version-update:semver-major" ]
groups:
aws-sdk-v3:
patterns:
- "@aws-sdk/*"
- "@smithy/*"
- "aws-sdk-client-mock"
- "aws-sdk-client-mock-jest"
aws-cdk:
patterns:
- "@aws-cdk/cli-lib-alpha"
- "aws-cdk-lib"
- "aws-cdk"
typedoc:
patterns:
- "typedoc"
- "typedoc-plugin-*" Which doesn't pick up the pre-release packages. Here are the Dependabot logs In all cases the I am not familiar with the codebase at all, but looking at the tests, there seems to be one that says that this should not be happening and that tests pre-release updates explicitly: Lines 320 to 342 in ddb9722
Also, this seems to be related to #10458 |
Is there an existing issue for this?
Package ecosystem
Yarn (npm)
Package manager version
Yarn
1.22.19
(npm8.19.3
)Language version
Node.js
18.12.1
Manifest location and content before the Dependabot update
/package.json
/yarn.lock
dependabot.yml content
No response
Updated dependency
Dependency:
@myorg/react-scripts
(the actual organization has been replaced in this example)Version from:
5.0.0-fork.1.0.3
Version to:
5.0.1-fork.1.0.3
What you expected to see, versus what you actually saw
Background:
We've forked the create-react-app repository and have built a custom version of the
react-scripts
library. Thus, we've versioned the fork using the following pre-release version format:<upstream-version>-fork.<fork-version>
. The version format adheres to the Semantic Versioning 2.0.0 specification and based on the precedence rules5.0.0-fork.1.0.3 < 5.0.1-fork.1.0.3
.Dependabot has previously updated successfully, e.g., from version
5.0.0-fork.1.0.2
to version5.0.0-fork.1.0.3
.Here's a comment that seems to describe a similar problem: #2250 (comment)
Expected behavior:
Dependabot updates
@myorg/react-scripts
from version5.0.0-fork.1.0.3
to version5.0.1-fork.1.0.3
.Actual behavior:
Dependabot reports
No update needed for @myorg/react-scripts 5.0.0-fork.1.0.3
Native package manager behavior
Running
yarn upgrade-interactive --latest
suggests to update@myorg/react-scripts
from version5.0.0-fork.1.0.3
to version5.0.1-fork.1.0.3
.Images of the diff or a link to the PR, issue, or logs
Dependabot logs related to the dependency:
Smallest manifest that reproduces the issue
No response
The text was updated successfully, but these errors were encountered: