-
Notifications
You must be signed in to change notification settings - Fork 1.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 use snapshots repositories for checking released versions #5947
Comments
This is affecting us as well. We too have Sonatype's snapshot repository enabled in our <repositories>
<repository>
<id>ossrh-snapshot</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
<snapshots>
<updatePolicy>always</updatePolicy>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories> For example, we're using
This behavior must be caused by a recent change, because the |
Observing the same. ( |
Needed for dependabot: dependabot/dependabot-core#5947
Hi, issue is also affecting us and the only "workaround" seems to: remove snapshot section and also do not use snapshot version in dependencies (which is not really great). @jeffwidman do you accidentally know how to fix or workaround this 🤔 Many thanks! |
Looking through the history of the
The easiest way to narrow this down is for someone affected by this issue to use one of our debugging tools to simulate running the update job locally: https://github.com/dependabot/dependabot-core#debugging-problems And then try checking out the Alternatively, you can simply run the latest version of All the code in our Maven updater is ruby, so the |
@jeffwidman - There is versions plugin - what do you need from |
I see that from sometime also dependency check in ASF project which use another artifacts from AFS stop working - it is probably connected with it. Eg: apache/maven-war-plugin#47
maven-shared-utils - is still used in project and should be updated |
Since we don't publish SNAPSHOT releases of Graylog for a long time, we don't need the custom configuration anymore. The configuration also breaks GitHub's dependabot checks due to a bug in the dependabot-core maven module: dependabot/dependabot-core#5947
Since we haven't published SNAPSHOT releases of Graylog for a long time, we don't need the custom configuration anymore. The configuration also breaks GitHub's dependabot checks due to a bug in the dependabot-core maven module: dependabot/dependabot-core#5947
Since we haven't published SNAPSHOT releases of Graylog for a long time, we don't need the custom configuration anymore. The configuration also breaks GitHub's dependabot checks due to a bug in the dependabot-core maven module: dependabot/dependabot-core#5947
Since we haven't published SNAPSHOT releases of Graylog for a long time, we don't need the custom configuration anymore. The configuration also breaks GitHub's dependabot checks due to a bug in the dependabot-core maven module: dependabot/dependabot-core#5947
Encountered this as well, have found a consistent local reproducer using dependabot cli. Take the following
The latest version of grpc-protobuf is 1.59.1. Run:
Gives output (failure):
But if you re-order
You get (success):
This shows there's some kind of ordering issue which means only the first repository is being checked.
I have another workaround:
|
- snapshots repositories will be used for parent pom resolving - for available versions checking snapshots repositories will be excluded fix dependabot#5947
Items repository -> snapshots,releases -> enabled has a default value as true, so it is enough to defined releases as false for snapshots repositories fix dependabot#5947
Items repository -> snapshots,releases -> enabled has a default value as true, so it is enough to defined releases as false for snapshots repositories fix #5947
Is there an existing issue for this?
Package ecosystem
Maven
Package manager version
No response
Language version
No response
Manifest location and content before the Dependabot update
No response
dependabot.yml content
No response
Updated dependency
No response
What you expected to see, versus what you actually saw
When Maven project in pom.xml or in parent project has defined additional additional repositories
only repositories for release version should be used.
Eg. we can have in porject - pom.xml:
so such repository should not be used for released artifact version.
We can have two situations - metadata not present in snapshot repositories, then as fallback default release is used
Metadata is present - no new version is detected
Native package manager behavior
No response
Images of the diff or a link to the PR, issue, or logs
No response
Smallest manifest that reproduces the issue
No response
The text was updated successfully, but these errors were encountered: