-
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
error that 7.0 .NET SDK is being used, not 8.0 #8530
Comments
BTW I see this mentioned in #8483 by @martincostello but it's not clear to me that issue covers it. |
Yeah, it's a weird one. Every single repo I have where I use Dependabot and .NET has been upgraded to .NET 8, but only two of them are hitting this specific error. |
Seeing the same thing. I'm seeing it affecting only one of the projects in one of my repos. The other projects in that repo don't seem to be running into any issue, but, from what I can tell, those other projects don't have any dependencies that are outdated yet and that could be the reason why Dependabot isn't throwing an error during the update check for those. This is one part of the Dependabot log, for that project, that I'm seeing that matches up with what you're seeing:
Edit: Looks like the dependabot-core/nuget/Dockerfile Line 14 in 5cf31a7
|
Could it be that dependabot is running on a pool of machines only some of which have it installed? One would have thought it would be in a consistent container though. |
A problem for the future for sure, but something to consider for 2024 is that early adopters of .NET 9 (👋) will be using it in their repos once it reaches release candidate stage and will likely expect Dependabot to continue to work as it has in the past with new versions of .NET. Having to wait for Dependabot itself to update to .NET 9 (and that be deployed) isn't a great an experience for such users as in the past where it's "just worked". Something to consider ahead of .NET 9 release candidates. |
Might be helpful to have the I can see a potential problem with that though. IIRC the |
FWIW, all my repos have a |
I'll actually need .NET 9 support almost immediately, eg., dotnet/eshop (which is owned by the .NET team) will take a dependency on it right away. Clearly, we're outliers, but presumably if the problem is solved for any previews, it will work for us. |
I think the ideal would be to allow a flag in the yml specifying that dependabot should use the latest preview .NET rather than latest stable. It's just a flag to the install script. My guess is that it would be unlikely for dependabot to hit a bug introduced in a preview Also as a .NET committer I would certainly champion fixes to any problem it may encounter (and @martincostello is a regular contributor there too.) |
Is there an existing issue for this?
Package ecosystem
nuget
Package manager version
whatever is in the 8.0 SDK
Language version
No response
Manifest location and content before the Dependabot update
various in https://github.com/danmoseley/eShop/tree/dependabot
dependabot.yml content
https://github.com/danmoseley/eShop/blob/dependabot/.github/dependabot.yml
Updated dependency
No response
What you expected to see, versus what you actually saw
log: https://github.com/danmoseley/eShop/network/updates/758220044
errors appear to start ere
The .NET 8.0.100 SDK is shipped 3 weeks ago. As far as I know, my repo is calling for it -- the global.json has
Is Dependabot using the 7.0 SDK still? That would cause it to fail when examining projects that target 8.0.
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: