NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
16.68k stars 13.13k forks source link

error NU1301 on dotnet restore on nixpkgs `ad57eef4ef0659193044870c731987a6df5cf56b` #316374

Closed zspher closed 1 month ago

zspher commented 1 month ago

Describe the bug

on nixpkgs commit ad57eef4ef0659193044870c731987a6df5cf56b running dotnet restore on a dotnet project with a nuget dependency results in

error NU1301: Unable to load the service index for source https://api.nuget.org/v3/index.json
warning NU1900: Error occurred while getting package vulnerability data: Request headers must contain only ASCII characters.

Steps To Reproduce

Steps to reproduce the behavior:

  1. mkdir c-sharp-test && cd c-sharp-test
  2. dotnet new install Avalonia.Templates
  3. dotnet new avalonia.mvvm
  4. dotnet restore

Expected behavior

the avalonia.mvvm template is loaded

Screenshots

If applicable, add screenshots to help explain your problem.

Additional context

when running in nixpkgs commit 5710852ba686cc1fd0d3b8e22b3117d43ba374c2 this does not happen

rm ~/.local/share/NuGet/http-cache -rf && rm ~/.local/share/dotnet/.nuget/* to have a clean dotnet cache

Notify maintainers

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.6.32, NixOS, 24.11 (Vicuña), 24.11.20240529.ad57eef`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.2`
 - nixpkgs: `/nix/store/qgbn0imyridkb9527v6gnv6z3jzzprb9-source`

Add a :+1: reaction to issues you find important.

zspher commented 1 month ago

git bisect anything before 4a817d2083d6cd7068dc55511fbf90f84653b301 is ok anything after and including the above commit causes the issue

zspher commented 1 month ago

duplicate of https://github.com/NixOS/nixpkgs/issues/315574