Closed ShamrockLee closed 2 years ago
Added some documentation.
If some git installations cause problems, maybe we should enforce the git installation by default?
How about we remove all options NP_MINIMAL
, NP_GITDIR
, NP_INSTALLGIT
.
... And instead have only NP_GIT
.
NP_GIT
can be:
/path/to/git
: use git binary from specified pathOnly if NP_GIT
is specified, the git installation is omitted. In any other case, git from nixpkgs is used.
I think the user experience would be better if there is only one variable to understand. How do you think about this?
@DavHau Sounds great, but is it okay to add path/to/executable to PATH
?
Done.
This change make nix-portable install and override
git
by default, unless users specify the path to git executable with the environment variableNP_GIT
.When nix-portable runs in an environment where the Git version is not compatible (v1.x, etc.), flake-related commands would error out:
If applied, the error will be fixed: