You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently git dependencies only have two attributes: a URL of the repository and a commit SHA1. This works fine, but has an issue: it is generally inefficient: to find a commit without knowing what ref it belongs to, we generally have to fetch all of the repository.
Another problem (the one which is the reason for this feature request) is that it breaks compatibility with other tools, specifically Nix. See input-output-hk/haskell.nix#592 and NixOS/nix#2409 for the main issue I'm facing and motivation behind the way fetchGit works in nix respectively.
I propose to add an optional attribute of branch or ref, that would specify which reference the commit belongs to, and fetching only that reference when it is specified.
To be clear, I don't want to add the ability to specify git deps without commit, but merely allow to specify the branch/ref to which the commit belongs to.
The text was updated successfully, but these errors were encountered:
Currently git dependencies only have two attributes: a URL of the repository and a commit SHA1. This works fine, but has an issue: it is generally inefficient: to find a commit without knowing what ref it belongs to, we generally have to fetch all of the repository.
Another problem (the one which is the reason for this feature request) is that it breaks compatibility with other tools, specifically Nix. See input-output-hk/haskell.nix#592 and NixOS/nix#2409 for the main issue I'm facing and motivation behind the way
fetchGit
works in nix respectively.I propose to add an optional attribute of
branch
orref
, that would specify which reference the commit belongs to, and fetching only that reference when it is specified.To be clear, I don't want to add the ability to specify
git
deps withoutcommit
, but merely allow to specify the branch/ref to which the commit belongs to.The text was updated successfully, but these errors were encountered: