Skip to content

installing a local pack fails if git is not installed #1305

Description

@matko

Starting in 9.1.22, it has become necessary to have git installed to install a pack, even if the pack to be installed is already present locally.

I suspect this is due to

; is_git_directory(Source)
.

It looks like link(true) would be a good way to not reach that branch, but unfortunately, that leads to errors down the line when a status.db is attempted to be written in the source directory, which might not be writable.

Maybe this could check for an explicit git(false) in the options before attempting to call git.

Initially reported here: NixOS/nixpkgs#336326

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions