yarn2nix-moretea: re-add support for `git://` URLs from `yarn.lock`
@lheckemann already added it to `yarn2nix` a while ago[1], but it seems as it was forgotten to include when adding `yarn2nix` sources to `nixpkgs` itself. Without this patch, you cannot add dependencies to your `package.json` with URLs like `git://github.com/.../` as building the expression would fail like this: ``` curl: (1) Protocol "git" not supported or disabled in libcurl error: cannot download git___github.com_sstur_nodeftpd.git from any mirror ``` Co-authored-by: Linus Heckemann <git@sphalerite.org> [1] https://github.com/nix-community/yarn2nix/pull/141
This commit is contained in:
parent
cd0065d184
commit
0c49f1896e
|
@ -80,7 +80,7 @@ function fetchLockedDep(builtinFetchGit) {
|
||||||
|
|
||||||
const fileName = urlToName(url)
|
const fileName = urlToName(url)
|
||||||
|
|
||||||
if (url.startsWith('git+')) {
|
if (url.startsWith('git+') || url.startsWith("git:")) {
|
||||||
const rev = sha1OrRev
|
const rev = sha1OrRev
|
||||||
|
|
||||||
const [_, branch] = nameWithVersion.split('#')
|
const [_, branch] = nameWithVersion.split('#')
|
||||||
|
|
Loading…
Reference in New Issue