-
Notifications
You must be signed in to change notification settings - Fork 48
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
Dependency submission graph updates #410
Comments
The most likely explanation is that you have 2 different versions of the dependency in your dependency graph. |
Good point. Let me confirm by running the list of dependencies and see what are the transitives. |
I can confirm the repo in question is on 6.1.13 ./gradlew -q dependencies > dependencies.txt
|
Please read the FAQ linked above. In particular you'll need to follow the instructions in the linked HOW-TO. Running |
I'm going down a bit of a rabbit hole here... So I enabled debug logging for the task running off the main branch as stated here I see in the logs references to Examples:
Now, locally I have run the recommended cmds to see if this dep does exist Examples
I get no results back Example response:
Now if I run with version 6.1.13, I can see that it does exist:
|
That's very strange: I don't really understand how both versions can be resolved in the The best and simplest way to track down this dependency would be to generate a Build Scan. This will quickly point to the cause of a dependency being resolved. If you can share a Build Scan link, then I can investigate further. There might be a bug in the dependency-graph plugin, but I'd need a way to reproduce it. If you can't generate a Build Scan, then you might want to try running the |
Hi @bigdaz , have you had a chance to look at my previous comment yet? |
Sorry, just back from vacations. We might be able to get a better idea by inspecting the full dependency graph that is submitted to GitHub. Unfortunately the full transitive graph is not visible in the GitHub UI, so we'll need to inspect the report that is submitted. You can generate the report by changing your workflow to include |
Not a problem @bigdaz I just emailed you with the report. |
@pexa-slee Thanks for sending the report. The file contains GitHub uses the 'correlator' value in the submitted file to determine if it should append or replace the existing dependency graph with a newly submitted one. You can read more about 'correlator' under 'Properties of job' here. So I can see 2 ways that the old dependency graph containing
The current job correlator is Unfortunately, GitHub doesn't provide any way to see the correlator that submitted a particular dependency. However, the GItHub engineers informed me that the old dependency graph should eventually "time out" when new graphs are being submitted, even if these have a different correlator value. Some questions:
|
I'm not sure if I have the same issue. We have observed duplicate dependencies as well - #482. |
Hi all,
I was updating a spring dependency recently to resolve a CVE. The dependency submission action ran on main. Now when I look at the dependency graph, I see two versions of the same dependency. The alert was raised correctly on the old version of Spring MVC. But now it is resolved, I was expecting that the graph would be overridden with the new version and the dependabot alert would automatically close.
The version of the action we are using is v4
gradle/actions/dependency-submission@v4
Or is this the assumed behaviour?
Regards,
The text was updated successfully, but these errors were encountered: