You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Local build on Ubuntu 16.04 fails with restore error #34994
I am hitting the following error when trying to build runtime locally:
./build.sh -subset Clr -binaryLog
Determining projects to restore...
Microsoft.DotNet.ToolPackage.ResolverCacheInconsistentException: more than one row for coverlet.console-1.7.0-net5.0-any-coverlet
at Microsoft.DotNet.ToolPackage.LocalToolsResolverCache.TryGetMatchingRestoredCommand(RestoredCommandIdentifier restoredCommandIdentifier, CacheRow[] cacheTable, RestoredCommand& restoredCommandList)
at Microsoft.DotNet.ToolPackage.LocalToolsResolverCache.TryLoad(RestoredCommandIdentifier restoredCommandIdentifier, RestoredCommand& restoredCommand)
at Microsoft.DotNet.Tools.Tool.Restore.ToolRestoreCommand.PackageHasBeenRestored(ToolManifestPackage package, String targetFramework)
at Microsoft.DotNet.Tools.Tool.Restore.ToolRestoreCommand.InstallPackages(ToolManifestPackage package, Nullable`1 configFile)
at Microsoft.DotNet.Tools.Tool.Restore.ToolRestoreCommand.<>c__DisplayClass11_0.<Execute>b__0(ToolManifestPackage package)
at System.Linq.Enumerable.SelectArrayIterator`2.MoveNext()
at System.Linq.ParallelEnumerable.ToList[TSource](ParallelQuery`1 source)
at System.Linq.ParallelEnumerable.ToArray[TSource](ParallelQuery`1 source)
at Microsoft.DotNet.Tools.Tool.Restore.ToolRestoreCommand.Execute()
at Microsoft.DotNet.Cli.DotNetTopLevelCommandBase.RunCommand(String[] args)
at Microsoft.DotNet.Tools.Tool.ToolCommand.Run(String[] args)
at Microsoft.DotNet.Cli.Program.ProcessArgs(String[] args, ITelemetry telemetryClient)
at Microsoft.DotNet.Cli.Program.Main(String[] args)
This seems to be exactly the same issue as #33837 that was happening in the CI and that was supposed to be fixed.
@janvorli did you run that from within the git/runtime2 directory? There should be more sources than that else you wouldn't get very far
That really shouldn't impact things though. Given your starting state is a cleared NuGet cache and you ran git clean -dxf . the only source that could produce the extra package I can think of is extra feeds. There don't appear to be any on your machine though.
@ViktorHofer@safern for ideas on where this duplicate package could be coming from.
Activity
janvorli commentedon Apr 15, 2020
cc: @jaredpar
Here are the binlogs:
https://1drv.ms/u/s!AkLV4wRkyHYhyR6j0hS1eaS5JXZr?e=EM7FEB
jaredpar commentedon Apr 15, 2020
@janvorli can you try running the following command?
Suspect that you have a source there which is complicating things. This is the output from my machine where I can restore successfully:
janvorli commentedon Apr 15, 2020
This is what the command dumped:
jaredpar commentedon Apr 16, 2020
@janvorli did you run that from within the
git/runtime2directory? There should be more sources than that else you wouldn't get very farThat really shouldn't impact things though. Given your starting state is a cleared NuGet cache and you ran
git clean -dxf .the only source that could produce the extra package I can think of is extra feeds. There don't appear to be any on your machine though.@ViktorHofer @safern for ideas on where this duplicate package could be coming from.
janvorli commentedon Apr 16, 2020
No, I didn't. I am sorry I have not realized it makes a difference. Here is the output when ran from that directory:
ViktorHofer commentedon Apr 20, 2020
That issue is dotnet/sdk#10938 (comment). I'll open one in Arcade to track setting
DOTNET_CLI_HOME.jaredpar commentedon Apr 20, 2020
That issue in SDK is closed though. Is the change just not merged into dotnet/runtime yet?
ViktorHofer commentedon Apr 20, 2020
There was no follow-up change, it was just closed. My guess is because it wasn't actionable in dotnet/sdk. cc @wli3
jashook commentedon May 11, 2020
@ViktorHofer is there any follow up here?
ViktorHofer commentedon May 11, 2020
Yes, dotnet/arcade#5402 was opened as a follow-up.
janvorli commentedon Jul 13, 2021
I believe this was fixed already.