Skip to content

Spin out libfetchers into stand-alone project #10802

Open
@roberth

Description

Is your feature request related to a problem? Please describe.

Reproducible and lazy fetching from multiple kinds of sources is a well-defined problem.
It has been questioned whether this should be a responsibility of the Nix project. Notably tvix has so far refused to implement fetchTree (iiuc).
Multiple projects could benefit from this functionality.
Having a single, reusable implementation of this functionality in the ecosystem helps with its goal of producing reproducible outputs.
A division of labor, which is feasible here, improves the efficiency of both teams.

Describe the solution you'd like

  • Review the libfetchers interface
  • Make libfetchers tests independent of Nix
  • Review libutil dependency
  • Move libfetchers into its own repository.

Describe alternatives you've considered

  • Specialize without refactoring, and keep in the same repo. This makes libfetchers unattractive to other implementers.
  • Use git subtrees for everything, and have a tool to manage the subtrees.

Additional context

Discussed at #ZurichZHF with @fricklerhandwerk

Priorities

Add 👍 to issues you find important.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    featureFeature request or proposalfetchingNetworking with the outside (non-Nix) world, input lockingprocessIssues related to the development process of Nix

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions