Skip to content

Not compatible with multi-line netrc file #130

@VictorEngmarkHexagon

Description

@VictorEngmarkHexagon

Some machines where I work connect directly to Cachix, and others connect via a proxy, so we have a two-line /etc/nix/netrc file:

machine [omitted].cachix.org password [omitted]
machine [proxy address] password [omitted; same as above]

When I try to connect to Cachix using this file, I get a HTTP 401-type response:

$ curl -s --netrc-file /etc/nix/netrc https://[omitted].cachix.org/nix-cache-info
Binary cache [omitted] doesn't exist or you're not authorized to access. Please check the name for typos and/or provide an auth token. Contact support on https://cachix.org if you're stuck!

But if I delete the proxy address line from the file, the request is successful:

$ curl -s --netrc-file /etc/nix/netrc https://[omitted].cachix.org/nix-cache-info
StoreDir: /nix/store
WantMassQuery: 1
Priority: 41

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions