-
Notifications
You must be signed in to change notification settings - Fork 647
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
NuGet package Id comes through with incorrect case #1271
Comments
I have sent a support email to the nuget guys. |
@johnsimons Any news? This is a royal PITA. |
The NuGet team is investigating if this can be addressed on the gallery. We've never successfully changed the case of a package before, but we recently made some changes that we believe will allow us to do so. However, with this specific repro, we need to make sure we don't regress old versions of the package by fixing the new version. |
So here’s something strange…
We plan to proceed with fixing the casing on nuget.org, but it would be great if we could reproduce the error so that we can verify our fix will correct the repro. Any help with repro steps to get into that bad state would be appreciated. |
@jeffhandley it is great that you are looking into the permanent fix for this. In the short term is it possible to fix our package in the back-end database/system that nuget uses? |
We are trying to fix only your package at first. But we need to verify we don't completely bust your package while doing so, as this is something we've only once attempted to fix before, and we broke the package we were trying to fix and we had to revert the change. To verify that we don't bust your package while fixing the data, we would like to reproduce the problem as illustrated above before fixing it, and then make the fix in our staging environment, and ensure we don't regress earlier versions of your package. |
@jeffhandley all fair enough. Take as much time as u need not to "completely bust the package" :) |
:-) So back to the question at hand... any tips on how to reproduce the behavior shown in the initial report? Thanks! |
@ianbattersby can you help @jeffhandley to replicate this issue? |
I suspect it's something to do with NuGet targets restore, the only difference I can think from that stated above.
Zip is here: https://dl.dropboxusercontent.com/u/795371/NSBNuGetCaseIssue-Example.zip |
Not sure if it affects the repro but no need for pre-release flag anymore. On Thursday, July 11, 2013, Ian Battersby wrote:
Regards |
I was just able to reproduce the issue against production, which is good!
At this stage, I have the following:
But, now with a few more steps it will be broken:
At this point, only one things changes and that's the packages folder. It's now "NServiceBus.StructureMap.4.0.0.1." However, if between steps 2 and 3, you were to have cleared your NuGet package cache, then this would no longer repro. Root cause: If the nupkg has different casing from what the server had when the package was installed, then you'll end up in the mismatch. Result: In order for nuget.org to fix the issue across all versions of a package, that would mean we'd need to start storing the casing of a package's id with each version, allowing it to differ from version to version to match what the nupkg has for that version. Should we proceed with the change for this package? |
Hi Jeff, Yes please go ahead with the case fixing. Thanks On Friday, July 12, 2013, Jeff Handley wrote:
Regards |
The casing is fixed for NServiceBus.StructureMap package in nuget.org. Let us know if you see any issues with it. Thanks ! |
@ianbattersby can you please confirm this is fixed? |
Thanks guys, that seems to have nailed it 👍 //cc @johnsimons |
Glad to hear it. Thanks for your patience on it. It is good to know the limitations of this and the side effects. |
@jeffhandley thanks for your help |
The same issue exists with Microsoft.AspNet.Providers.LocalDB 2.0.0 package as well. "DB" is capitalized and the package id in packages.config is . Is it possible to fix this in nuget.org |
@psubramanain1582 The owner of the package can "Contact Support" from the package details page. But because of the implications described herein, unless the owners of the package can agree it's the right thing to do, we won't make the change. |
Minor issue;
Just noticed that the Id of the NServiceBus.StructureMap on NuGet has the incorrect case, despite the nuspec in source having it correct.
Should be ->
NServiceBus.StructureMap
It is ->
NServiceBus.Structuremap
In packages.config;
Project reference it is capitalised (as per nuspec Id) but physical directory is not;
The significance of this is the packages directory that gets created and that on a case-sensitive volume causing a reference error.
Might be something you can edit on nuget.org.
The text was updated successfully, but these errors were encountered: