Skip to content

fetchurl ignores curlOptsList #858

@npatsakula

Description

@npatsakula

Description

Hello @ipetkov!

I updated nix to a new version (nix (Determinate Nix 3.6.2) 2.29.0) and authorization for private repositories stopped working. Apparently, the new version ignores the curlOptsList options.

Reproduction

crane' = crane''.appendCrateRegistries [
  (crane''.registryFromSparse {
   indexUrl = "https://registry.patsakula.ru/api/v1/crates/";
   configSha256 = "sha256:my_secret_sha";
   fetchurlExtraArgs = {
     curlOptsList = [
       "-Hnonvalidflag"
       "Authorization: MySecretKey"
     ];
   };
  })
];

I'm getting 401 even if -Hnonvalidflag is present, so I assume that this options are not passing to curl.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions