Skip to content
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

Workload regression, installation fails for undefined platform alias #17790

Closed
lewing opened this issue May 21, 2021 · 15 comments
Closed

Workload regression, installation fails for undefined platform alias #17790

lewing opened this issue May 21, 2021 · 15 comments
Labels
Area-Workloads untriaged Request triage from a team member
Milestone

Comments

@lewing
Copy link
Member

lewing commented May 21, 2021

#16956

And the associated design change say that a pack alias that is not defined for a given platform is not required. dotnet workload install microsoft-net-sdk-blazorwebassembly-aot has started failing on linux-x64 because there is no python pack defined for that platform.

Updated advertising manifest microsoft.net.workload.mono.toolchain.
Updated advertising manifest microsoft.net.sdk.android.
Updated advertising manifest microsoft.net.sdk.maccatalyst.
Updated advertising manifest microsoft.net.sdk.tvos.
Updated advertising manifest microsoft.net.sdk.ios.
Updated advertising manifest microsoft.net.sdk.macos.
Installing workload manifest microsoft.net.workload.mono.toolchain version 6.0.0-preview.6.21271.6.
[NuGet Manager] [Info]   GET https://api.nuget.org/v3/registration5-gz-semver2/microsoft.net.workload.mono.toolchain.manifest-6.0.100/index.json
[NuGet Manager] [Info]   GET https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/825db618-e3eb-4426-ba54-b1d6e6c944d8/nuget/v3/registrations2-semver2/microsoft.net.workload.mono.toolchain.manifest-6.0.100/index.json
[NuGet Manager] [Info]   GET https://pkgs.dev.azure.com/azure-public/3ccf6661-f8ce-4e8a-bb2e-eff943ddd3c7/_packaging/be90bfa8-5c00-452b-ba9f-226ce4366992/nuget/v3/registrations2-semver2/microsoft.net.workload.mono.toolchain.manifest-6.0.100/index.json
[NuGet Manager] [Info]   NotFound https://api.nuget.org/v3/registration5-gz-semver2/microsoft.net.workload.mono.toolchain.manifest-6.0.100/index.json 83ms
[NuGet Manager] [Info]   OK https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/825db618-e3eb-4426-ba54-b1d6e6c944d8/nuget/v3/registrations2-semver2/microsoft.net.workload.mono.toolchain.manifest-6.0.100/index.json 87ms
[NuGet Manager] [Info]   GET https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/825db618-e3eb-4426-ba54-b1d6e6c944d8/nuget/v3/flat2/microsoft.net.workload.mono.toolchain.manifest-6.0.100/index.json
[NuGet Manager] [Info]   OK https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/825db618-e3eb-4426-ba54-b1d6e6c944d8/nuget/v3/flat2/microsoft.net.workload.mono.toolchain.manifest-6.0.100/index.json 81ms
[NuGet Manager] [Info]   GET https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/825db618-e3eb-4426-ba54-b1d6e6c944d8/nuget/v3/flat2/microsoft.net.workload.mono.toolchain.manifest-6.0.100/6.0.0-preview.6.21271.6/microsoft.net.workload.mono.toolchain.manifest-6.0.100.6.0.0-preview.6.21271.6.nupkg
[NuGet Manager] [Info]   OK https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/825db618-e3eb-4426-ba54-b1d6e6c944d8/nuget/v3/flat2/microsoft.net.workload.mono.toolchain.manifest-6.0.100/6.0.0-preview.6.21271.6/microsoft.net.workload.mono.toolchain.manifest-6.0.100.6.0.0-preview.6.21271.6.nupkg 215ms
Installing workload manifest microsoft.net.sdk.android version 30.0.100-ci.main.9.
[NuGet Manager] [Info]   GET https://api.nuget.org/v3/registration5-gz-semver2/microsoft.net.sdk.android.manifest-6.0.100/index.json
[NuGet Manager] [Info]   GET https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/825db618-e3eb-4426-ba54-b1d6e6c944d8/nuget/v3/registrations2-semver2/microsoft.net.sdk.android.manifest-6.0.100/index.json
[NuGet Manager] [Info]   GET https://pkgs.dev.azure.com/azure-public/3ccf6661-f8ce-4e8a-bb2e-eff943ddd3c7/_packaging/be90bfa8-5c00-452b-ba9f-226ce4366992/nuget/v3/registrations2-semver2/microsoft.net.sdk.android.manifest-6.0.100/index.json
[NuGet Manager] [Info]   NotFound https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/825db618-e3eb-4426-ba54-b1d6e6c944d8/nuget/v3/registrations2-semver2/microsoft.net.sdk.android.manifest-6.0.100/index.json 57ms
[NuGet Manager] [Info]   NotFound https://api.nuget.org/v3/registration5-gz-semver2/microsoft.net.sdk.android.manifest-6.0.100/index.json 82ms
[NuGet Manager] [Info]   OK https://pkgs.dev.azure.com/azure-public/3ccf6661-f8ce-4e8a-bb2e-eff943ddd3c7/_packaging/be90bfa8-5c00-452b-ba9f-226ce4366992/nuget/v3/registrations2-semver2/microsoft.net.sdk.android.manifest-6.0.100/index.json 113ms
[NuGet Manager] [Info]   GET https://pkgs.dev.azure.com/azure-public/3ccf6661-f8ce-4e8a-bb2e-eff943ddd3c7/_packaging/be90bfa8-5c00-452b-ba9f-226ce4366992/nuget/v3/flat2/microsoft.net.sdk.android.manifest-6.0.100/index.json
[NuGet Manager] [Info]   OK https://pkgs.dev.azure.com/azure-public/3ccf6661-f8ce-4e8a-bb2e-eff943ddd3c7/_packaging/be90bfa8-5c00-452b-ba9f-226ce4366992/nuget/v3/flat2/microsoft.net.sdk.android.manifest-6.0.100/index.json 89ms
[NuGet Manager] [Info]   GET https://pkgs.dev.azure.com/azure-public/3ccf6661-f8ce-4e8a-bb2e-eff943ddd3c7/_packaging/be90bfa8-5c00-452b-ba9f-226ce4366992/nuget/v3/flat2/microsoft.net.sdk.android.manifest-6.0.100/30.0.100-ci.main.9/microsoft.net.sdk.android.manifest-6.0.100.30.0.100-ci.main.9.nupkg
[NuGet Manager] [Info]   OK https://pkgs.dev.azure.com/azure-public/3ccf6661-f8ce-4e8a-bb2e-eff943ddd3c7/_packaging/be90bfa8-5c00-452b-ba9f-226ce4366992/nuget/v3/flat2/microsoft.net.sdk.android.manifest-6.0.100/30.0.100-ci.main.9/microsoft.net.sdk.android.manifest-6.0.100.30.0.100-ci.main.9.nupkg 351ms
Workload installation failed, rolling back installed packs...
Installing workload manifest microsoft.net.workload.mono.toolchain version 6.0.0-preview.5.21270.12.
[NuGet Manager] [Info]   GET https://api.nuget.org/v3/registration5-gz-semver2/microsoft.net.workload.mono.toolchain.manifest-6.0.100/index.json
[NuGet Manager] [Info]   GET https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/825db618-e3eb-4426-ba54-b1d6e6c944d8/nuget/v3/registrations2-semver2/microsoft.net.workload.mono.toolchain.manifest-6.0.100/index.json
[NuGet Manager] [Info]   GET https://pkgs.dev.azure.com/azure-public/3ccf6661-f8ce-4e8a-bb2e-eff943ddd3c7/_packaging/be90bfa8-5c00-452b-ba9f-226ce4366992/nuget/v3/registrations2-semver2/microsoft.net.workload.mono.toolchain.manifest-6.0.100/index.json
[NuGet Manager] [Info]   NotFound https://api.nuget.org/v3/registration5-gz-semver2/microsoft.net.workload.mono.toolchain.manifest-6.0.100/index.json 30ms
[NuGet Manager] [Info]   OK https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/825db618-e3eb-4426-ba54-b1d6e6c944d8/nuget/v3/registrations2-semver2/microsoft.net.workload.mono.toolchain.manifest-6.0.100/index.json 87ms
[NuGet Manager] [Info]   GET https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/825db618-e3eb-4426-ba54-b1d6e6c944d8/nuget/v3/flat2/microsoft.net.workload.mono.toolchain.manifest-6.0.100/index.json
[NuGet Manager] [Info]   OK https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/825db618-e3eb-4426-ba54-b1d6e6c944d8/nuget/v3/flat2/microsoft.net.workload.mono.toolchain.manifest-6.0.100/index.json 55ms
[NuGet Manager] [Info]   GET https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/825db618-e3eb-4426-ba54-b1d6e6c944d8/nuget/v3/flat2/microsoft.net.workload.mono.toolchain.manifest-6.0.100/6.0.0-preview.5.21270.12/microsoft.net.workload.mono.toolchain.manifest-6.0.100.6.0.0-preview.5.21270.12.nupkg
[NuGet Manager] [Info]   OK https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/825db618-e3eb-4426-ba54-b1d6e6c944d8/nuget/v3/flat2/microsoft.net.workload.mono.toolchain.manifest-6.0.100/6.0.0-preview.5.21270.12/microsoft.net.workload.mono.toolchain.manifest-6.0.100.6.0.0-preview.5.21270.12.nupkg 57ms
Installing workload manifest microsoft.net.sdk.android version 11.0.200-ci.main.256.
[NuGet Manager] [Info]   GET https://api.nuget.org/v3/registration5-gz-semver2/microsoft.net.sdk.android.manifest-6.0.100/index.json
[NuGet Manager] [Info]   GET https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/825db618-e3eb-4426-ba54-b1d6e6c944d8/nuget/v3/registrations2-semver2/microsoft.net.sdk.android.manifest-6.0.100/index.json
[NuGet Manager] [Info]   GET https://pkgs.dev.azure.com/azure-public/3ccf6661-f8ce-4e8a-bb2e-eff943ddd3c7/_packaging/be90bfa8-5c00-452b-ba9f-226ce4366992/nuget/v3/registrations2-semver2/microsoft.net.sdk.android.manifest-6.0.100/index.json
[NuGet Manager] [Info]   NotFound https://api.nuget.org/v3/registration5-gz-semver2/microsoft.net.sdk.android.manifest-6.0.100/index.json 30ms
[NuGet Manager] [Info]   NotFound https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/825db618-e3eb-4426-ba54-b1d6e6c944d8/nuget/v3/registrations2-semver2/microsoft.net.sdk.android.manifest-6.0.100/index.json 64ms
[NuGet Manager] [Info]   OK https://pkgs.dev.azure.com/azure-public/3ccf6661-f8ce-4e8a-bb2e-eff943ddd3c7/_packaging/be90bfa8-5c00-452b-ba9f-226ce4366992/nuget/v3/registrations2-semver2/microsoft.net.sdk.android.manifest-6.0.100/index.json 111ms
[NuGet Manager] [Info]   GET https://pkgs.dev.azure.com/azure-public/3ccf6661-f8ce-4e8a-bb2e-eff943ddd3c7/_packaging/be90bfa8-5c00-452b-ba9f-226ce4366992/nuget/v3/flat2/microsoft.net.sdk.android.manifest-6.0.100/index.json
[NuGet Manager] [Info]   OK https://pkgs.dev.azure.com/azure-public/3ccf6661-f8ce-4e8a-bb2e-eff943ddd3c7/_packaging/be90bfa8-5c00-452b-ba9f-226ce4366992/nuget/v3/flat2/microsoft.net.sdk.android.manifest-6.0.100/index.json 105ms
[NuGet Manager] [Info]   GET https://pkgs.dev.azure.com/azure-public/3ccf6661-f8ce-4e8a-bb2e-eff943ddd3c7/_packaging/be90bfa8-5c00-452b-ba9f-226ce4366992/nuget/v3/flat2/microsoft.net.sdk.android.manifest-6.0.100/11.0.200-ci.main.256/microsoft.net.sdk.android.manifest-6.0.100.11.0.200-ci.main.256.nupkg
[NuGet Manager] [Info]   OK https://pkgs.dev.azure.com/azure-public/3ccf6661-f8ce-4e8a-bb2e-eff943ddd3c7/_packaging/be90bfa8-5c00-452b-ba9f-226ce4366992/nuget/v3/flat2/microsoft.net.sdk.android.manifest-6.0.100/11.0.200-ci.main.256/microsoft.net.sdk.android.manifest-6.0.100.11.0.200-ci.main.256.nupkg 369ms
Workload installation failed: Duplicate workload manifest Microsoft.NET.Workload.Mono.ToolChain
install
  Install a workload.

Usage:
  dotnet [options] workload install [<PACKAGE_ID>...]

Arguments:
  <PACKAGE_ID>  The NuGet Package Id of the workload to install.

Options:
  --sdk-version <VERSION>                                                  The version of the SDK.
  --configfile <FILE>                                                      The NuGet configuration file to use.
  --add-source <SOURCE>                                                    Add an additional NuGet package source to use during installation.
  --skip-manifest-update                                                   Skip updating the workload manifests.
  --from-cache <from-cache>                                                Complete the operation from cache (offline).
  --download-to-cache <download-to-cache>                                  Download packages needed to install a workload to a folder which can be used for offline installation.
  --include-previews                                                       Allow prerelease workload manifests.
  --disable-parallel                                                       Prevent restoring multiple projects in parallel.
  --ignore-failed-sources                                                  Treat package source failures as warnings.
  --no-cache                                                               Do not cache packages and http requests.
  --interactive                                                            Allows the command to stop and wait for user input or action (for example to complete authentication).
  -v, --verbosity <d|detailed|diag|diagnostic|m|minimal|n|normal|q|quiet>  Set the MSBuild verbosity level. Allowed values are q[uiet], m[inimal], n[ormal], d[etailed], and diag[nostic].
  -?, -h, --help 

The failure is easy to reproduce by removing an alias for the platform you are testing on.

cc @mhutch @dsplaisted @mmitche @pranavkm

@dsplaisted
Copy link
Member

@sfoslund Is this an issue in our design, in the workload manifests, a bug in the workload installation, or what?

It looks like the actual error generated is:

Workload installation failed: Duplicate workload manifest Microsoft.NET.Workload.Mono.ToolChain

@lewing
Copy link
Member Author

lewing commented May 21, 2021

Reproducing on osx-x64 by removing the python entry gets me:

dotnet workload install microsoft-net-sdk-blazorwebassembly-aot --skip-manifest-update -v:diag

Installing pack Microsoft.NETCore.App.Runtime.Mono.browser-wasm version 6.0.0-preview.6.21269.9...
[NuGet Manager] [Info]   GET https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/45bacae2-5efb-47c8-91e5-8ec20c22b4f8/nuget/v3/registrations2-semver2/microsoft.netcore.app.runtime.mono.browser-wasm/index.json
[NuGet Manager] [Info]   GET https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/d1622942-d16f-48e5-bc83-96f4539e7601/nuget/v3/registrations2-semver2/microsoft.netcore.app.runtime.mono.browser-wasm/index.json
[NuGet Manager] [Info]   GET https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/1a5f89f6-d8da-4080-b15f-242650c914a8/nuget/v3/registrations2-semver2/microsoft.netcore.app.runtime.mono.browser-wasm/index.json
[NuGet Manager] [Info]   GET https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/825db618-e3eb-4426-ba54-b1d6e6c944d8/nuget/v3/registrations2-semver2/microsoft.netcore.app.runtime.mono.browser-wasm/index.json
[NuGet Manager] [Info]   GET https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/c9f8ac11-6bd8-4926-8306-f075241547f7/nuget/v3/registrations2-semver2/microsoft.netcore.app.runtime.mono.browser-wasm/index.json
[NuGet Manager] [Info]   GET https://pkgs.dev.azure.com/azure-public/3ccf6661-f8ce-4e8a-bb2e-eff943ddd3c7/_packaging/58ca65bb-e6c1-4210-88ac-fa55c1cd7877/nuget/v3/registrations2-semver2/microsoft.netcore.app.runtime.mono.browser-wasm/index.json
[NuGet Manager] [Info]   NotFound https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/c9f8ac11-6bd8-4926-8306-f075241547f7/nuget/v3/registrations2-semver2/microsoft.netcore.app.runtime.mono.browser-wasm/index.json 171ms
[NuGet Manager] [Info]   NotFound https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/d1622942-d16f-48e5-bc83-96f4539e7601/nuget/v3/registrations2-semver2/microsoft.netcore.app.runtime.mono.browser-wasm/index.json 174ms
[NuGet Manager] [Info]   NotFound https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/1a5f89f6-d8da-4080-b15f-242650c914a8/nuget/v3/registrations2-semver2/microsoft.netcore.app.runtime.mono.browser-wasm/index.json 295ms
[NuGet Manager] [Info]   NotFound https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/45bacae2-5efb-47c8-91e5-8ec20c22b4f8/nuget/v3/registrations2-semver2/microsoft.netcore.app.runtime.mono.browser-wasm/index.json 340ms
[NuGet Manager] [Info]   OK https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/825db618-e3eb-4426-ba54-b1d6e6c944d8/nuget/v3/registrations2-semver2/microsoft.netcore.app.runtime.mono.browser-wasm/index.json 297ms
[NuGet Manager] [Info]   NotFound https://pkgs.dev.azure.com/azure-public/3ccf6661-f8ce-4e8a-bb2e-eff943ddd3c7/_packaging/58ca65bb-e6c1-4210-88ac-fa55c1cd7877/nuget/v3/registrations2-semver2/microsoft.netcore.app.runtime.mono.browser-wasm/index.json 353ms
[NuGet Manager] [Info]   GET https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/825db618-e3eb-4426-ba54-b1d6e6c944d8/nuget/v3/flat2/microsoft.netcore.app.runtime.mono.browser-wasm/index.json
[NuGet Manager] [Info]   OK https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/825db618-e3eb-4426-ba54-b1d6e6c944d8/nuget/v3/flat2/microsoft.netcore.app.runtime.mono.browser-wasm/index.json 121ms
[NuGet Manager] [Info]   GET https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/825db618-e3eb-4426-ba54-b1d6e6c944d8/nuget/v3/flat2/microsoft.netcore.app.runtime.mono.browser-wasm/6.0.0-preview.6.21269.9/microsoft.netcore.app.runtime.mono.browser-wasm.6.0.0-preview.6.21269.9.nupkg
[NuGet Manager] [Info]   OK https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/825db618-e3eb-4426-ba54-b1d6e6c944d8/nuget/v3/flat2/microsoft.netcore.app.runtime.mono.browser-wasm/6.0.0-preview.6.21269.9/microsoft.netcore.app.runtime.mono.browser-wasm.6.0.0-preview.6.21269.9.nupkg 165ms
Writing workload pack installation record for Microsoft.NETCore.App.Runtime.Mono.browser-wasm version 6.0.0-preview.6.21269.9...
Installing pack Microsoft.NET.Runtime.MonoAOTCompiler.Task version 6.0.0-preview.6.21269.9...
[NuGet Manager] [Info]   GET https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/45bacae2-5efb-47c8-91e5-8ec20c22b4f8/nuget/v3/registrations2-semver2/microsoft.net.runtime.monoaotcompiler.task/index.json
[NuGet Manager] [Info]   GET https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/d1622942-d16f-48e5-bc83-96f4539e7601/nuget/v3/registrations2-semver2/microsoft.net.runtime.monoaotcompiler.task/index.json
[NuGet Manager] [Info]   GET https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/1a5f89f6-d8da-4080-b15f-242650c914a8/nuget/v3/registrations2-semver2/microsoft.net.runtime.monoaotcompiler.task/index.json
[NuGet Manager] [Info]   GET https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/825db618-e3eb-4426-ba54-b1d6e6c944d8/nuget/v3/registrations2-semver2/microsoft.net.runtime.monoaotcompiler.task/index.json
[NuGet Manager] [Info]   GET https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/c9f8ac11-6bd8-4926-8306-f075241547f7/nuget/v3/registrations2-semver2/microsoft.net.runtime.monoaotcompiler.task/index.json
[NuGet Manager] [Info]   GET https://pkgs.dev.azure.com/azure-public/3ccf6661-f8ce-4e8a-bb2e-eff943ddd3c7/_packaging/58ca65bb-e6c1-4210-88ac-fa55c1cd7877/nuget/v3/registrations2-semver2/microsoft.net.runtime.monoaotcompiler.task/index.json
[NuGet Manager] [Info]   NotFound https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/45bacae2-5efb-47c8-91e5-8ec20c22b4f8/nuget/v3/registrations2-semver2/microsoft.net.runtime.monoaotcompiler.task/index.json 130ms
[NuGet Manager] [Info]   NotFound https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/d1622942-d16f-48e5-bc83-96f4539e7601/nuget/v3/registrations2-semver2/microsoft.net.runtime.monoaotcompiler.task/index.json 140ms
[NuGet Manager] [Info]   NotFound https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/1a5f89f6-d8da-4080-b15f-242650c914a8/nuget/v3/registrations2-semver2/microsoft.net.runtime.monoaotcompiler.task/index.json 144ms
[NuGet Manager] [Info]   NotFound https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/c9f8ac11-6bd8-4926-8306-f075241547f7/nuget/v3/registrations2-semver2/microsoft.net.runtime.monoaotcompiler.task/index.json 168ms
[NuGet Manager] [Info]   NotFound https://pkgs.dev.azure.com/azure-public/3ccf6661-f8ce-4e8a-bb2e-eff943ddd3c7/_packaging/58ca65bb-e6c1-4210-88ac-fa55c1cd7877/nuget/v3/registrations2-semver2/microsoft.net.runtime.monoaotcompiler.task/index.json 350ms
[NuGet Manager] [Info]   OK https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/825db618-e3eb-4426-ba54-b1d6e6c944d8/nuget/v3/registrations2-semver2/microsoft.net.runtime.monoaotcompiler.task/index.json 408ms
[NuGet Manager] [Info]   GET https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/825db618-e3eb-4426-ba54-b1d6e6c944d8/nuget/v3/flat2/microsoft.net.runtime.monoaotcompiler.task/index.json
[NuGet Manager] [Info]   OK https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/825db618-e3eb-4426-ba54-b1d6e6c944d8/nuget/v3/flat2/microsoft.net.runtime.monoaotcompiler.task/index.json 248ms
[NuGet Manager] [Info]   GET https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/825db618-e3eb-4426-ba54-b1d6e6c944d8/nuget/v3/flat2/microsoft.net.runtime.monoaotcompiler.task/6.0.0-preview.6.21269.9/microsoft.net.runtime.monoaotcompiler.task.6.0.0-preview.6.21269.9.nupkg
[NuGet Manager] [Info]   OK https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/825db618-e3eb-4426-ba54-b1d6e6c944d8/nuget/v3/flat2/microsoft.net.runtime.monoaotcompiler.task/6.0.0-preview.6.21269.9/microsoft.net.runtime.monoaotcompiler.task.6.0.0-preview.6.21269.9.nupkg 151ms
Writing workload pack installation record for Microsoft.NET.Runtime.MonoAOTCompiler.Task version 6.0.0-preview.6.21269.9...
Installing pack Microsoft.NET.Runtime.WebAssembly.Sdk version 6.0.0-preview.6.21269.9...
[NuGet Manager] [Info]   GET https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/45bacae2-5efb-47c8-91e5-8ec20c22b4f8/nuget/v3/registrations2-semver2/microsoft.net.runtime.webassembly.sdk/index.json
[NuGet Manager] [Info]   GET https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/d1622942-d16f-48e5-bc83-96f4539e7601/nuget/v3/registrations2-semver2/microsoft.net.runtime.webassembly.sdk/index.json
[NuGet Manager] [Info]   GET https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/1a5f89f6-d8da-4080-b15f-242650c914a8/nuget/v3/registrations2-semver2/microsoft.net.runtime.webassembly.sdk/index.json
[NuGet Manager] [Info]   GET https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/825db618-e3eb-4426-ba54-b1d6e6c944d8/nuget/v3/registrations2-semver2/microsoft.net.runtime.webassembly.sdk/index.json
[NuGet Manager] [Info]   GET https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/c9f8ac11-6bd8-4926-8306-f075241547f7/nuget/v3/registrations2-semver2/microsoft.net.runtime.webassembly.sdk/index.json
[NuGet Manager] [Info]   GET https://pkgs.dev.azure.com/azure-public/3ccf6661-f8ce-4e8a-bb2e-eff943ddd3c7/_packaging/58ca65bb-e6c1-4210-88ac-fa55c1cd7877/nuget/v3/registrations2-semver2/microsoft.net.runtime.webassembly.sdk/index.json
[NuGet Manager] [Info]   NotFound https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/c9f8ac11-6bd8-4926-8306-f075241547f7/nuget/v3/registrations2-semver2/microsoft.net.runtime.webassembly.sdk/index.json 150ms
[NuGet Manager] [Info]   NotFound https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/d1622942-d16f-48e5-bc83-96f4539e7601/nuget/v3/registrations2-semver2/microsoft.net.runtime.webassembly.sdk/index.json 194ms
[NuGet Manager] [Info]   NotFound https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/45bacae2-5efb-47c8-91e5-8ec20c22b4f8/nuget/v3/registrations2-semver2/microsoft.net.runtime.webassembly.sdk/index.json 218ms
[NuGet Manager] [Info]   NotFound https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/1a5f89f6-d8da-4080-b15f-242650c914a8/nuget/v3/registrations2-semver2/microsoft.net.runtime.webassembly.sdk/index.json 251ms
[NuGet Manager] [Info]   NotFound https://pkgs.dev.azure.com/azure-public/3ccf6661-f8ce-4e8a-bb2e-eff943ddd3c7/_packaging/58ca65bb-e6c1-4210-88ac-fa55c1cd7877/nuget/v3/registrations2-semver2/microsoft.net.runtime.webassembly.sdk/index.json 331ms
[NuGet Manager] [Info]   OK https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/825db618-e3eb-4426-ba54-b1d6e6c944d8/nuget/v3/registrations2-semver2/microsoft.net.runtime.webassembly.sdk/index.json 380ms
[NuGet Manager] [Info]   GET https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/825db618-e3eb-4426-ba54-b1d6e6c944d8/nuget/v3/flat2/microsoft.net.runtime.webassembly.sdk/index.json
[NuGet Manager] [Info]   OK https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/825db618-e3eb-4426-ba54-b1d6e6c944d8/nuget/v3/flat2/microsoft.net.runtime.webassembly.sdk/index.json 140ms
[NuGet Manager] [Info]   GET https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/825db618-e3eb-4426-ba54-b1d6e6c944d8/nuget/v3/flat2/microsoft.net.runtime.webassembly.sdk/6.0.0-preview.6.21269.9/microsoft.net.runtime.webassembly.sdk.6.0.0-preview.6.21269.9.nupkg
[NuGet Manager] [Info]   OK https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/825db618-e3eb-4426-ba54-b1d6e6c944d8/nuget/v3/flat2/microsoft.net.runtime.webassembly.sdk/6.0.0-preview.6.21269.9/microsoft.net.runtime.webassembly.sdk.6.0.0-preview.6.21269.9.nupkg 223ms
Writing workload pack installation record for Microsoft.NET.Runtime.WebAssembly.Sdk version 6.0.0-preview.6.21269.9...
Installing pack Microsoft.NETCore.App.Runtime.AOT.Cross.browser-wasm version 6.0.0-preview.6.21269.9...
[NuGet Manager] [Info]   GET https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/45bacae2-5efb-47c8-91e5-8ec20c22b4f8/nuget/v3/registrations2-semver2/microsoft.netcore.app.runtime.aot.osx-x64.cross.browser-wasm/index.json
[NuGet Manager] [Info]   GET https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/d1622942-d16f-48e5-bc83-96f4539e7601/nuget/v3/registrations2-semver2/microsoft.netcore.app.runtime.aot.osx-x64.cross.browser-wasm/index.json
[NuGet Manager] [Info]   GET https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/1a5f89f6-d8da-4080-b15f-242650c914a8/nuget/v3/registrations2-semver2/microsoft.netcore.app.runtime.aot.osx-x64.cross.browser-wasm/index.json
[NuGet Manager] [Info]   GET https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/825db618-e3eb-4426-ba54-b1d6e6c944d8/nuget/v3/registrations2-semver2/microsoft.netcore.app.runtime.aot.osx-x64.cross.browser-wasm/index.json
[NuGet Manager] [Info]   GET https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/c9f8ac11-6bd8-4926-8306-f075241547f7/nuget/v3/registrations2-semver2/microsoft.netcore.app.runtime.aot.osx-x64.cross.browser-wasm/index.json
[NuGet Manager] [Info]   GET https://pkgs.dev.azure.com/azure-public/3ccf6661-f8ce-4e8a-bb2e-eff943ddd3c7/_packaging/58ca65bb-e6c1-4210-88ac-fa55c1cd7877/nuget/v3/registrations2-semver2/microsoft.netcore.app.runtime.aot.osx-x64.cross.browser-wasm/index.json
[NuGet Manager] [Info]   NotFound https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/45bacae2-5efb-47c8-91e5-8ec20c22b4f8/nuget/v3/registrations2-semver2/microsoft.netcore.app.runtime.aot.osx-x64.cross.browser-wasm/index.json 144ms
[NuGet Manager] [Info]   NotFound https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/1a5f89f6-d8da-4080-b15f-242650c914a8/nuget/v3/registrations2-semver2/microsoft.netcore.app.runtime.aot.osx-x64.cross.browser-wasm/index.json 152ms
[NuGet Manager] [Info]   NotFound https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/c9f8ac11-6bd8-4926-8306-f075241547f7/nuget/v3/registrations2-semver2/microsoft.netcore.app.runtime.aot.osx-x64.cross.browser-wasm/index.json 189ms
[NuGet Manager] [Info]   NotFound https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/d1622942-d16f-48e5-bc83-96f4539e7601/nuget/v3/registrations2-semver2/microsoft.netcore.app.runtime.aot.osx-x64.cross.browser-wasm/index.json 269ms
[NuGet Manager] [Info]   NotFound https://pkgs.dev.azure.com/azure-public/3ccf6661-f8ce-4e8a-bb2e-eff943ddd3c7/_packaging/58ca65bb-e6c1-4210-88ac-fa55c1cd7877/nuget/v3/registrations2-semver2/microsoft.netcore.app.runtime.aot.osx-x64.cross.browser-wasm/index.json 421ms
[NuGet Manager] [Info]   OK https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/825db618-e3eb-4426-ba54-b1d6e6c944d8/nuget/v3/registrations2-semver2/microsoft.netcore.app.runtime.aot.osx-x64.cross.browser-wasm/index.json 517ms
[NuGet Manager] [Info]   GET https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/825db618-e3eb-4426-ba54-b1d6e6c944d8/nuget/v3/flat2/microsoft.netcore.app.runtime.aot.osx-x64.cross.browser-wasm/index.json
[NuGet Manager] [Info]   OK https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/825db618-e3eb-4426-ba54-b1d6e6c944d8/nuget/v3/flat2/microsoft.netcore.app.runtime.aot.osx-x64.cross.browser-wasm/index.json 143ms
[NuGet Manager] [Info]   GET https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/825db618-e3eb-4426-ba54-b1d6e6c944d8/nuget/v3/flat2/microsoft.netcore.app.runtime.aot.osx-x64.cross.browser-wasm/6.0.0-preview.6.21269.9/microsoft.netcore.app.runtime.aot.osx-x64.cross.browser-wasm.6.0.0-preview.6.21269.9.nupkg
[NuGet Manager] [Info]   OK https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/825db618-e3eb-4426-ba54-b1d6e6c944d8/nuget/v3/flat2/microsoft.netcore.app.runtime.aot.osx-x64.cross.browser-wasm/6.0.0-preview.6.21269.9/microsoft.netcore.app.runtime.aot.osx-x64.cross.browser-wasm.6.0.0-preview.6.21269.9.nupkg 184ms
Writing workload pack installation record for Microsoft.NETCore.App.Runtime.AOT.Cross.browser-wasm version 6.0.0-preview.6.21269.9...
Installing pack Microsoft.NET.Runtime.Emscripten.Node version 6.0.0-preview.6.21268.1...
[NuGet Manager] [Info]   GET https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/45bacae2-5efb-47c8-91e5-8ec20c22b4f8/nuget/v3/registrations2-semver2/microsoft.net.runtime.emscripten.2.0.12.node.osx-x64/index.json
[NuGet Manager] [Info]   GET https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/d1622942-d16f-48e5-bc83-96f4539e7601/nuget/v3/registrations2-semver2/microsoft.net.runtime.emscripten.2.0.12.node.osx-x64/index.json
[NuGet Manager] [Info]   GET https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/1a5f89f6-d8da-4080-b15f-242650c914a8/nuget/v3/registrations2-semver2/microsoft.net.runtime.emscripten.2.0.12.node.osx-x64/index.json
[NuGet Manager] [Info]   GET https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/825db618-e3eb-4426-ba54-b1d6e6c944d8/nuget/v3/registrations2-semver2/microsoft.net.runtime.emscripten.2.0.12.node.osx-x64/index.json
[NuGet Manager] [Info]   GET https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/c9f8ac11-6bd8-4926-8306-f075241547f7/nuget/v3/registrations2-semver2/microsoft.net.runtime.emscripten.2.0.12.node.osx-x64/index.json
[NuGet Manager] [Info]   GET https://pkgs.dev.azure.com/azure-public/3ccf6661-f8ce-4e8a-bb2e-eff943ddd3c7/_packaging/58ca65bb-e6c1-4210-88ac-fa55c1cd7877/nuget/v3/registrations2-semver2/microsoft.net.runtime.emscripten.2.0.12.node.osx-x64/index.json
[NuGet Manager] [Info]   NotFound https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/45bacae2-5efb-47c8-91e5-8ec20c22b4f8/nuget/v3/registrations2-semver2/microsoft.net.runtime.emscripten.2.0.12.node.osx-x64/index.json 152ms
[NuGet Manager] [Info]   OK https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/825db618-e3eb-4426-ba54-b1d6e6c944d8/nuget/v3/registrations2-semver2/microsoft.net.runtime.emscripten.2.0.12.node.osx-x64/index.json 156ms
[NuGet Manager] [Info]   NotFound https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/d1622942-d16f-48e5-bc83-96f4539e7601/nuget/v3/registrations2-semver2/microsoft.net.runtime.emscripten.2.0.12.node.osx-x64/index.json 158ms
[NuGet Manager] [Info]   GET https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/825db618-e3eb-4426-ba54-b1d6e6c944d8/nuget/v3/flat2/microsoft.net.runtime.emscripten.2.0.12.node.osx-x64/index.json
[NuGet Manager] [Info]   OK https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/825db618-e3eb-4426-ba54-b1d6e6c944d8/nuget/v3/flat2/microsoft.net.runtime.emscripten.2.0.12.node.osx-x64/index.json 101ms
[NuGet Manager] [Info]   GET https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/825db618-e3eb-4426-ba54-b1d6e6c944d8/nuget/v3/flat2/microsoft.net.runtime.emscripten.2.0.12.node.osx-x64/6.0.0-preview.6.21268.1/microsoft.net.runtime.emscripten.2.0.12.node.osx-x64.6.0.0-preview.6.21268.1.nupkg
[NuGet Manager] [Info]   OK https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/825db618-e3eb-4426-ba54-b1d6e6c944d8/nuget/v3/flat2/microsoft.net.runtime.emscripten.2.0.12.node.osx-x64/6.0.0-preview.6.21268.1/microsoft.net.runtime.emscripten.2.0.12.node.osx-x64.6.0.0-preview.6.21268.1.nupkg 160ms
Writing workload pack installation record for Microsoft.NET.Runtime.Emscripten.Node version 6.0.0-preview.6.21268.1...
Workload installation failed, rolling back installed packs...
Installation roll back failed: Object reference not set to an instance of an object.
Rolling back pack Microsoft.NETCore.App.Runtime.Mono.browser-wasm installation...
Rolling back pack Microsoft.NET.Runtime.MonoAOTCompiler.Task installation...
Rolling back pack Microsoft.NET.Runtime.WebAssembly.Sdk installation...
Rolling back pack Microsoft.NETCore.App.Runtime.AOT.Cross.browser-wasm installation...
Rolling back pack Microsoft.NET.Runtime.Emscripten.Node installation...
Workload installation failed: Object reference not set to an instance of an object.
install
  Install a workload.

Usage:
  dotnet [options] workload install [<PACKAGE_ID>...]

Arguments:
  <PACKAGE_ID>  The NuGet Package Id of the workload to install.

Options:
  --sdk-version <VERSION>                                                  The version of the SDK.
  --configfile <FILE>                                                      The NuGet configuration file to use.
  --add-source <SOURCE>                                                    Add an additional NuGet package source to use during installation.
  --skip-manifest-update                                                   Skip updating the workload manifests.
  --from-cache <from-cache>                                                Complete the operation from cache (offline).
  --download-to-cache <download-to-cache>                                  Download packages needed to install a workload to a folder which can be used for offline installation.
  --include-previews                                                       Allow prerelease workload manifests.
  --disable-parallel                                                       Prevent restoring multiple projects in parallel.
  --ignore-failed-sources                                                  Treat package source failures as warnings.
  --no-cache                                                               Do not cache packages and http requests.
  --interactive                                                            Allows the command to stop and wait for user input or action (for example to complete authentication).
  -v, --verbosity <d|detailed|diag|diagnostic|m|minimal|n|normal|q|quiet>  Set the MSBuild verbosity level. Allowed values are q[uiet], m[inimal], n[ormal], d[etailed], and diag[nostic].
  -?, -h, --help                                                           Show help and usage information

@sfoslund
Copy link
Member

When I try to repro I get the second error (Workload installation failed: Object reference not set to an instance of an object) but not the duplicate manifest one. The object reference error is probably an install bug, but I'm not sure about the duplicate manifest error without a repro

@lewing
Copy link
Member Author

lewing commented May 21, 2021

@radical you were seeing the duplicate error when you didn't pass --skip-manifest-update on linux?

@radical
Copy link
Member

radical commented May 21, 2021

@radical you were seeing the duplicate error when you didn't pass --skip-manifest-update on linux?

Yes, with a fresh dotnet install.

@radical
Copy link
Member

radical commented May 21, 2021

This is what I tried on an Ubuntu 18.04 vm:

$ ./dotnet-install.sh -Channel release/6.0.1xx-preview5 -InstallDir dotnet

# add new dotnet to PATH
$ which dotnet
/home/ankit/workloads/test/dotnet/dotnet

$ dotnet workload install microsoft-net-sdk-blazorwebassembly-aot 2>&1 | tee log

Updated advertising manifest microsoft.net.workload.mono.toolchain.
Updated advertising manifest microsoft.net.sdk.android.
Updated advertising manifest microsoft.net.sdk.maccatalyst.
Updated advertising manifest microsoft.net.sdk.tvos.
Updated advertising manifest microsoft.net.sdk.ios.
Updated advertising manifest microsoft.net.sdk.macos.
Installing workload manifest microsoft.net.workload.mono.toolchain version 6.0.0-preview.6.21271.6.
Installing workload manifest microsoft.net.sdk.android version 30.0.100-ci.main.9.
Installing workload manifest microsoft.net.sdk.maccatalyst version 14.5.100-ci.xharness-test-dotnet-build-hang-fix.872.
Installing workload manifest microsoft.net.sdk.tvos version 14.5.100-ci.xharness-test-dotnet-build-hang-fix.872.
Installing workload manifest microsoft.net.sdk.ios version 14.5.100-ci.xharness-test-dotnet-build-hang-fix.872.
Installing workload manifest microsoft.net.sdk.macos version 11.3.100-ci.xharness-test-dotnet-build-hang-fix.872.
Workload installation failed, rolling back installed packs...
Installing workload manifest microsoft.net.workload.mono.toolchain version 6.0.0-preview.5.21270.12.
Installing workload manifest microsoft.net.sdk.android version 11.0.200-ci.main.256.
Installing workload manifest microsoft.net.sdk.maccatalyst version 14.5.100-ci.main.723.
Installing workload manifest microsoft.net.sdk.tvos version 14.5.100-ci.main.723.
Installing workload manifest microsoft.net.sdk.ios version 14.5.100-ci.main.723.
Installing workload manifest microsoft.net.sdk.macos version 11.3.100-ci.main.723.
Workload installation failed: Duplicate workload manifest Microsoft.NET.Workload.Mono.ToolChain
install
  Install a workload.

Usage:
  dotnet [options] workload install [<PACKAGE_ID>...]

Arguments:
  <PACKAGE_ID>  The NuGet Package Id of the workload to install.

Options:
  --sdk-version <VERSION>                                                  The version of the SDK.
  --configfile <FILE>                                                      The NuGet configuration file to use.
  --add-source <SOURCE>                                                    Add an additional NuGet package source to use during installation.
  --skip-manifest-update                                                   Skip updating the workload manifests.
  --from-cache <from-cache>                                                Complete the operation from cache (offline).
  --download-to-cache <download-to-cache>                                  Download packages needed to install a workload to a folder which can be used for offline installation.
  --include-previews                                                       Allow prerelease workload manifests.
  --disable-parallel                                                       Prevent restoring multiple projects in parallel.
  --ignore-failed-sources                                                  Treat package source failures as warnings.
  --no-cache                                                               Do not cache packages and http requests.
  --interactive                                                            Allows the command to stop and wait for user input or action (for example to complete authentication).
  -v, --verbosity <d|detailed|diag|diagnostic|m|minimal|n|normal|q|quiet>  Set the MSBuild verbosity level. Allowed values are q[uiet], m[inimal], n[ormal], d[etailed], and diag[nostic].
  -?, -h, --help                                                           Show help and usage information

@sfoslund
Copy link
Member

What baseline manifests do you have installed? Are they checked into the SDK and are the packages available on nuget.org of do I need a certain feed? The build I'm looking at still has microsoft.net.workload.blazorwebassembly as the manifest id and there don't seem to be any manifest packages available.

@sfoslund
Copy link
Member

The fix for the object ref error is simple: #17794

@radical
Copy link
Member

radical commented May 21, 2021

This(https://dotnetcli.azureedge.net/dotnet/Sdk/6.0.100-preview.5.21271.9/dotnet-sdk-6.0.100-preview.5.21271.9-linux-x64.tar.gz) is what got installed by

$ ./dotnet-install.sh -Channel release/6.0.1xx-preview5 -InstallDir dotnet

I added the following to a new nuget.config:

    <add key="dotnet6" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet6/nuget/v3/index.json" />
    <add key="xamarin" value="https://pkgs.dev.azure.com/azure-public/vside/_packaging/xamarin-impl/nuget/v3/index.json" />

After installing dotnet, and setting PATH:

$ find dotnet/sdk-manifests/6.0.100/ -type f
dotnet/sdk-manifests/6.0.100/Microsoft.NET.Workload.Mono.ToolChain/WorkloadManifest.targets
dotnet/sdk-manifests/6.0.100/Microsoft.NET.Workload.Mono.ToolChain/WorkloadManifest.json
dotnet/sdk-manifests/6.0.100/Microsoft.NET.Sdk.Android/WorkloadManifest.targets
dotnet/sdk-manifests/6.0.100/Microsoft.NET.Sdk.Android/WorkloadManifest.json
dotnet/sdk-manifests/6.0.100/Microsoft.NET.Sdk.MacCatalyst/WorkloadManifest.targets
dotnet/sdk-manifests/6.0.100/Microsoft.NET.Sdk.MacCatalyst/WorkloadManifest.json
dotnet/sdk-manifests/6.0.100/Microsoft.NET.Sdk.tvOS/WorkloadManifest.targets
dotnet/sdk-manifests/6.0.100/Microsoft.NET.Sdk.tvOS/WorkloadManifest.json
dotnet/sdk-manifests/6.0.100/Microsoft.NET.Sdk.iOS/WorkloadManifest.targets
dotnet/sdk-manifests/6.0.100/Microsoft.NET.Sdk.iOS/WorkloadManifest.json
dotnet/sdk-manifests/6.0.100/Microsoft.NET.Sdk.macOS/WorkloadManifest.targets
dotnet/sdk-manifests/6.0.100/Microsoft.NET.Sdk.macOS/WorkloadManifest.json

@sfoslund
Copy link
Member

I'm not able to reproduce this on windows or mac. The steps I'm following are:

  1. Install 6.0.100-preview.5.21271.9
  2. Add nuget.config content you provided above
  3. Run dotnet workload install microsoft-net-sdk-blazorwebassembly-aot

And installation is succeeding and updating manifests normally. Am I missing a step?

@radical
Copy link
Member

radical commented May 24, 2021

Try this on linux, where we don't have a python package available.

@sfoslund
Copy link
Member

Ah, I'm able to repro and it's an issue with case sensitive file systems. I'll work to get a fix out soon.

@sfoslund
Copy link
Member

PRs are out for both errors in this issue, both are targeting prev 5
Manifest update on case sensitive file systems: #17833
Object reference not set for aliased pack: #17794

@sfoslund
Copy link
Member

Fixed by #17794 and dotnet/installer#10788

@sfoslund
Copy link
Member

Confirmed that this no longer repos on linux with preview.5.21277.7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Workloads untriaged Request triage from a team member
Projects
None yet
Development

No branches or pull requests

5 participants