Skip to content

Remove runtime dependency on git package #9807

@roberth

Description

@roberth

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

  • Having a dependency on external commands is not great when you're in a constrained environment. E.g. iirc macOS ships a git that's a trap door, asking the user to install xcode.
  • Library performance tends to be better than external process performance.
  • Libraries may be more secure, as we skip argument parsing logic, which may be flawed and subject to dangerous changes.
  • Closure size perhaps.

Describe the solution you'd like

Use libgit2 for everything.
Do not call the Git CLI from Nix.
We'll still need it in the functional test suite, but that's ok.
Do not regress in functionality.

Additional context

Priorities

Personally, I just opened this for tracking purposes.

Add 👍 to issues you find important.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureFeature request or proposalfetchingNetworking with the outside (non-Nix) world, input locking
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions