-
Notifications
You must be signed in to change notification settings - Fork 266
Open
Labels
Area:RestoreRepeatableBuildThe lock file featuresThe lock file featuresFunctionality:RestorePartner:CLI-SDKPlatform:XplatPriority:2Issues for the current backlog.Issues for the current backlog.Resolution:BlockedByExternalProgress on this task is blocked by an external issue. When that issue is completed this can proceedProgress on this task is blocked by an external issue. When that issue is completed this can proceedType:Bug
Description
Details about Problem
When running a dotnet restore --locked-mode from a linux environment where dotnet restore --force-evaluate was run on windows it fails. This makes things very difficult to test cross platform. (Build on a linux agent then run tests on windows). Note: it happens either way (lockfile generate on linux causes windows to fail)
NuGet product used: dotnet.exe
NuGet version (x.x.x.xxx):
❯ dotnet nuget --version
NuGet Command Line
5.4.0.2
dotnet.exe --version (if appropriate):
❯ dotnet --version
3.1.102
OS version (i.e. win10 v1607 (14393.321)): Windows 10 Enterprise: 10.0.18363 and Ubuntu 18..04 (WSL in my case, but repro's on build agents as well)
Worked before? If so, with which NuGet version: Unknown
Detailed repro steps so we can see the same problem
- git clone https://github.com/jabbera/nuget-locked-mode-bug.git
- cd nuget-locked-mode-bug
- dotnet restore --locked-mode # This succeeds as it should
- bash
- dotnet restore --locked-mode # This fails with:error NU1004: The packages lock file is inconsistent with
- dotnet restore --force-evaluate
- exit
- git diff # This will let you see the differences between the OS's
Other suggested things
Output of the diff:
diff --git a/packages.lock.json b/packages.lock.json
index 1d02123..d72a20f 100644
--- a/packages.lock.json
+++ b/packages.lock.json
@@ -9,7 +9,6 @@
"contentHash": "7D2TMufjGiowmt0E941kVoTIS+GTNzaPopuzM1/1LSaJAdJdBrVP0SkZW7AgDd0a2U1DjsIeaKG1wxGVBNLDMw==" }
},
- ".NETCoreApp,Version=v3.1/win7-x86": {},
".NETFramework,Version=v4.6.2": {
"Microsoft.NETFramework.ReferenceAssemblies": {
"type": "Direct",
@@ -25,7 +24,6 @@
"resolved": "1.0.0",
"contentHash": "ONGjkFWduK13lfxUtlEl4+nYwrqDe5NF5f8qRtp5fqWiWYlqft/Ko9ht3e6Secg9y3I1yL8Xnfag/JGOOn0yoQ==" }
- },
- ".NETFramework,Version=v4.6.2/win7-x86": {}
+ }
}
}
\ No newline at end of file
tebeco, Bouke, chriscerk, mungojam, quixoticaxis and 25 more
Metadata
Metadata
Assignees
Labels
Area:RestoreRepeatableBuildThe lock file featuresThe lock file featuresFunctionality:RestorePartner:CLI-SDKPlatform:XplatPriority:2Issues for the current backlog.Issues for the current backlog.Resolution:BlockedByExternalProgress on this task is blocked by an external issue. When that issue is completed this can proceedProgress on this task is blocked by an external issue. When that issue is completed this can proceedType:Bug