dotnet / sdk

Core functionality needed to create .NET Core projects, that is shared between Visual Studio and CLI
https://dot.net/core
MIT License
2.65k stars 1.06k forks source link

[Linux]There are some warnings "Warning: Workload garbage collection failed with error: Workload pack 'Microsoft.NET.Runtime.Emscripten.Node.net8' in manifest ..." when running "dotnet workload update" in CMD after installing SDK 8.0.400 and SDK 9.0.100-preview.7 #42667

Open Rita003 opened 1 month ago

Rita003 commented 1 month ago

REGRESSION INFO: Work in SDK 8.0.303+SDK 9.0 Preview 6

REPRO STEPS

  1. Repro OS: Linux OS
  2. Install SDK 8.0.400
    • Apply August Servicing 8.0 feed and PAT
  3. Install SDK 9.0.100-preview.7.24407.12
    • Apply 9.0 Preview 7 feed
  4. Open command line and run the following command sudo dotnet workload update

ACTUAL There are some warnings when running dotnet workload update in CMD Screenshot 2024-08-12 142220

EXPECTED Running dotnet workload update successfully without any warning.

Error Log Warning: Workload garbage collection failed with error: Workload pack 'Microsoft.NET.Runtime.Emscripten.Node.net8' in manifest 'microsoft.net.workload.emscripten.net8' [/home/parallels/dotnet/sdk-manifests/9.0.100-preview.7/microsoft.net.workload.emscripten.net8/9.0.0-preview.7.24373.5/WorkloadManifest.json] conflicts with manifest 'microsoft.net.workload.emscripten.current' [/home/parallels/dotnet/sdk-manifests/8.0.100/microsoft.net.workload.emscripten.current/8.0.8/WorkloadManifest.json].

v-sherryfan commented 4 weeks ago

This issue also repro on Mac arm64.

v-elenafeng commented 2 weeks ago

[Mac/Linux] This issue is still reproducible with SDK 8.0.402 (pre-release) + SDK 9.0 RC1 (pre-release) and also reproduced with the latest released SDK 8.0.401 + SDK 9.0 P7.

@baronfel, could you please help investigate this? Thanks!