From de15fa9797ba20123714ef529b2306ff573e2e6e Mon Sep 17 00:00:00 2001 From: Lin Jian Date: Fri, 11 Apr 2025 01:44:19 +0800 Subject: [PATCH] emacs: fix GitLab API usage when generating MELPA packages The wrong API fetches a tarball from master instead of the specified commit, leading to a wrong hash[1]. API: https://docs.gitlab.com/api/repositories/#get-file-archive [1]: https://github.com/nix-community/emacs-overlay/pulls?q=is%3Apr+author%3Ajian-lin+is%3Aclosed+in%3Atitle+hash+ --- pkgs/applications/editors/emacs/elisp-packages/update-melpa.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/applications/editors/emacs/elisp-packages/update-melpa.el b/pkgs/applications/editors/emacs/elisp-packages/update-melpa.el index 9cb6456cd6f9..97343135ef0e 100644 --- a/pkgs/applications/editors/emacs/elisp-packages/update-melpa.el +++ b/pkgs/applications/editors/emacs/elisp-packages/update-melpa.el @@ -101,7 +101,7 @@ return Promise to resolve in that process." ("gitlab" (list "nix-prefetch-url" "--unpack" (concat "https://gitlab.com/api/v4/projects/" (url-hexify-string repo) - "/repository/archive.tar.gz?ref=" + "/repository/archive.tar.gz?sha=" commit))) ("sourcehut" (list "nix-prefetch-url" "--unpack" (concat "https://git.sr.ht/~" repo "/archive/" commit ".tar.gz")))