update-melpa.el: update gitlab fetcher to use API URL
GitLab packages were not downloading because the archive URL's used were invalid. Following the [GitLab API Docs][0], use the correct GitLab archive URL. This change is mirrored in ttuegel/emacs2nix#57. Signed-off-by: Kenny Ballou <kb@devnulllabs.io>
This commit is contained in:
parent
46445cc334
commit
54a540c448
@ -99,7 +99,10 @@ return Promise to resolve in that process."
|
||||
("github" (list "nix-prefetch-url"
|
||||
"--unpack" (concat "https://github.com/" repo "/archive/" commit ".tar.gz")))
|
||||
("gitlab" (list "nix-prefetch-url"
|
||||
"--unpack" (concat "https://gitlab.com/" repo "/repository/archive.tar.gz?ref=" commit)))
|
||||
"--unpack" (concat "https://gitlab.com/api/v4/projects/"
|
||||
(url-hexify-string repo)
|
||||
"/repository/archive.tar.gz?ref="
|
||||
commit)))
|
||||
("bitbucket" (list "nix-prefetch-hg"
|
||||
(concat "https://bitbucket.com/" repo) commit))
|
||||
("hg" (list "nix-prefetch-hg"
|
||||
|
Loading…
Reference in New Issue
Block a user