Open sandyarmstrong opened 2 years ago
I believe our current guidance for local dev loop is using the --skip-sign-check
option for install
commands - this should help you skip the checks entirely. I'm not sure how much control we have over the feed selection - nuget without PackageSourceMapping is kind of a broad-swatch approach, and workload packs don't interact with PackageSourceMapping as of yet.
Requests
Background
I usually install the
macos
workload using a rollback file. I do something like this:sudo dotnet workload install macos --source https://aka.ms/dotnet6/nuget/index.json --source https://api.nuget.org/v3/index.json --from-rollback-file rollback.json
rollback.json looks something like this:
This works fine on macOS (which does not support package signature validation yet). On Windows, though, I very frequently run into errors like this:
I believe this occurs because there is a mix of signed and unsigned packages in the feeds I use (which I do not control, see https://github.com/dotnet/maui/wiki/macOS-Install). When I'm using fully released packages, it's typically enough to drop https://aka.ms/dotnet6/nuget/index.json and just use https://api.nuget.org/v3/index.json. But frequently I need to use prerelease workloads where packages are spread across multiple feeds that I do not control. When this happens, it feels impossible to install the workload on Windows.
So it would be nice if workload installation handled this scenario more gracefully. I would like to be able to disable package signature validation entirely. I would like more actionable error messages that let me know what feed is providing the unsigned package. And ideally, I'd like the package resolution during installation to be able to check other feeds for a properly signed package before giving up on the workload entirely.