question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Workloads: Feed authentication during install doesn't seem to work at all on macOS

See original GitHub issue

dotnet SDK 6.0.300 Azure Artifacts Credential Provider 1.0.0 (.NET 6 build)

  1. Configure https://github.com/Microsoft/artifacts-credprovider with a valid Azure DevOps package read/write token (confirmed by doing a restore from private feed).
  2. Run sudo dotnet workload install macos --source https://pkgs.dev.azure.com/MY_PROJECT/nuget/v3/index.json

Expected results

SDK coordinates with https://github.com/Microsoft/artifacts-credprovider to authenticate to https://pkgs.dev.azure.com/MY_PROJECT/nuget/v3/index.json and requests workload packages from the feed (which may in turn pull them from any configured upstreams).

Actual results

Failed to update the advertising manifest microsoft.net.sdk.tvos: Unable to load the service index for source https://pkgs.dev.azure.com/MY_PROJECT/nuget/v3/index.json..
Failed to update the advertising manifest microsoft.net.sdk.android: Unable to load the service index for source https://pkgs.dev.azure.com/MY_PROJECT/nuget/v3/index.json..
Failed to update the advertising manifest microsoft.net.sdk.maui: Unable to load the service index for source https://pkgs.dev.azure.com/MY_PROJECT/nuget/v3/index.json..
Failed to update the advertising manifest microsoft.net.sdk.macos: Unable to load the service index for source https://pkgs.dev.azure.com/MY_PROJECT/nuget/v3/index.json..
Failed to update the advertising manifest microsoft.net.workload.emscripten: Unable to load the service index for source https://pkgs.dev.azure.com/MY_PROJECT/nuget/v3/index.json..
Failed to update the advertising manifest microsoft.net.sdk.maccatalyst: Unable to load the service index for source https://pkgs.dev.azure.com/MY_PROJECT/nuget/v3/index.json..
Failed to update the advertising manifest microsoft.net.sdk.ios: Unable to load the service index for source https://pkgs.dev.azure.com/MY_PROJECT/nuget/v3/index.json..
Failed to update the advertising manifest microsoft.net.workload.mono.toolchain: Unable to load the service index for source https://pkgs.dev.azure.com/MY_PROJECT/nuget/v3/index.json..
Installing workload manifest microsoft.net.sdk.tvos version 15.4.303…
Workload installation failed. Rolling back installed packs...
Workload installation failed: Failed to install manifest microsoft.net.sdk.tvos version 15.4.303: Unable to load the service index for source https://pkgs.dev.azure.com/MY_PROJECT/nuget/v3/index.json..

Unless there is some way to work around this, this should be considered a critical security issue. Projects should not have to use nuget.org (or other public feeds) directly to install workloads.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:12 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
nagilsoncommented, Nov 15, 2022

Also though, perhaps this is a sign we need to improve the error handling for --source as it is currently rather confusing… I will create an issue for that.

1reaction
nagilsoncommented, Nov 8, 2022

That happened for me while trying to reproduce the issue but didn’t occur when --source was removed. It seems like --source was looking for an updated semantic version of the workload that didn’t exist. We will probably talk about this as a team tomorrow with people who have more workloads expertise and historical knowledge and try to get back to you.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Failed to pair to Mac with error "Could not install workload ...
In the next window, enter the username and password for the user account on the macOS machine. Connect the machine. ACTUAL: Pair to...
Read more >
If an error occurred while updating or installing macOS
The message might say that an error occurred while downloading, preparing, or installing, or that the installer is damaged or could not be ......
Read more >
How to Install the Falcon Agent – Mac
For all macOS versions, in the right pane, click the plus icon. In finder, find Falcon in the list of applications (no “Agent”...
Read more >
dotnet-install scripts - .NET CLI
Learn about the dotnet-install scripts to install the .NET SDK and the shared runtime.
Read more >
Citrix Workspace app for Mac
Citrix Workspace app for macOS now natively supports Macs with Apple silicon (M1 and M2 Series) by way of a universal architecture. With...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found