While the nixpkgs fetchgit tool works with truncated commitishes, Nix 2.x's builtins.fetchGit does not.
Moreover, as nixpkgs fetchgit can't handle private repositories when running on a system with nix-daemon used for builds, users may reasonably want to override the fetchgit argument to buildGoPackage and kin with one that switches over to builtins.fetchGit instead.
To support this usage mode, it would be helpful for vgo2nix to replace truncated commitishes with their full text.
(This feature request is added in anticipation of building a PR; any feedback on things to keep in mind during implementation would be appreciated).
While the nixpkgs
fetchgit
tool works with truncated commitishes, Nix 2.x'sbuiltins.fetchGit
does not.Moreover, as nixpkgs
fetchgit
can't handle private repositories when running on a system with nix-daemon used for builds, users may reasonably want to override thefetchgit
argument tobuildGoPackage
and kin with one that switches over tobuiltins.fetchGit
instead.To support this usage mode, it would be helpful for vgo2nix to replace truncated commitishes with their full text.
(This feature request is added in anticipation of building a PR; any feedback on things to keep in mind during implementation would be appreciated).