Skip to content

nix-prefetch-url doesn't use the fetcher cache #10881

Open
@fricklerhandwerk

Description

@fricklerhandwerk

Describe the bug

nix-prefetch-url re-downloads the same remote object every time, because it doesn't use the fetcher cache.

Steps To Reproduce

nix-prefetch-url https://github.com/NixOS/nix/archive/refs/heads/master.zip
nix-prefetch-url https://github.com/NixOS/nix/archive/refs/heads/master.zip

Expected behavior

The second invocation does not require a download. But as you observe, it currently does.

Additional context

This is an issue for tools like npins: andir/npins#57

Priorities

Add 👍 to issues you find important.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugcliThe old and/or new command line interfacefetchingNetworking with the outside (non-Nix) world, input locking

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions