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
Transitive lock files (with wildcard) result in NU1004 #8465
Comments
@daniel-white There are some issues with |
@nkolev92 the more specific versions like |
(i'm assuming this was a problem with earlier nuget versions as well, right? this is not a regression?) |
@rrelyea I’m not sure. I know there were some other issues that prevented me from using the lock files before this version |
I verified, this is not a regression, it's always been an issue. We have an issue with the way we express the dependencies of dependencies in the lock file. The issue in the repro above specifically is: "locktest": {
"type": "Project",
"dependencies": {
"Conga.Logging": "0.12.1-beta"
}
} |
We're running into the same issue. We are using dotnet 5.0.202. Is there a workaround or something we can try in the meantime? |
Hi, we're running into the same issue as well with 5.0.302 |
I realise this is a super old ticket so I'm guessing not a widely seen issue. Or is it only in the more exotic like I wonder is it something to do with by design floating versions not opting into pre-release versions. |
n.b. after much experimentation I was able to use version ranges, using this very helpful tool to iterate quickly https://nugettools.azurewebsites.net/5.9.1/find-best-version-match However unfortunately version ranges seem to break whitesource (a dependency scanning tool I'm using) so in the end I switched to non-floating versions. |
This issue is quite old, are there any plans to fix it or a workaround @nkolev92 ? I don't see what else I can do apart from not using wildcards? |
#10458 is likely a duplicate of this issue. |
Details about Problem
NuGet product used (NuGet.exe | VS UI | Package Manager Console | dotnet.exe): dotnet cli
NuGet version (x.x.x.xxx):
dotnet.exe --version (if appropriate): 2.1.801
OS version (i.e. win10 v1607 (14393.321)): macOS 10.14.6 (18G87)
Worked before? If so, with which NuGet version: No
Detailed repro steps so we can see the same problem
Create a .net standard project. Add a nuget reference with a wildcard version.
Enable
RestorePackagesWithLockFile
.Run
dotnet restore
for the first project.Add another .net standard project. Reference the first project via project reference.
Enable
RestorePackagesWithLockFile
.Run
dotnet restore
for the second project.Run
dotnet restore --locked-mode
for the second project.Observe
NU1004
...
Other suggested things
Verbose Logs
log.txt
Sample Project
locktest.zip
The text was updated successfully, but these errors were encountered: