guix-play/guix/import
Sarah Morgensen 9f526f5dad
upstream: Support updating and fetching 'git-fetch' origins.
Updaters need to be modified to return 'git-reference' objects.
This patch modifies the 'generic-git' and 'minetest' updater,
but others might need to be modified as well.

* guix/git.scm (git-reference->git-checkout): New procedure.
* guix/upstream.scm (package-update/git-fetch): New procedure.
  (<upstream-source>)[urls]: Document it can be a 'git-reference'.
  (%method-updates): Add 'git-fetch' mapping.
  (update-package-source): Support 'git-reference' sources.
  (upstream-source-compiler/url-fetch): Split off from ...
  (upstream-source-compiler): ... this, and call ...
  (upstream-source-compiler/git-fetch): ... this new procedure if the URL
  field contains a 'git-reference'.
* guix/import/git.scm
  (latest-git-tag-version): Always return two values and document that the tag
  is returned as well.
  (latest-git-release)[urls]: Use the 'git-reference' instead of the
  repository URL.
* guix/import/minetest.scm (latest-minetest-release)[urls]: Don't wrap the
  'git-reference' in a list.
* tests/minetest.scm (upstream-source->sexp): Adjust to new convention.

Co-authored-by: Maxime Devos <maximedevos@telenet.be>
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2022-01-06 16:27:30 +01:00
..
cabal.scm import: cabal: Treat identifier names correctly. 2021-09-15 14:28:38 +02:00
cpan.scm import, swh: Adjust to Guile-JSON 4.5.x unspecified value handling. 2021-01-21 00:14:38 +01:00
cran.scm import: Factorize file hashing. 2022-01-06 16:27:30 +01:00
crate.scm import: crate: Gracefully handle missing license info. 2021-10-07 10:47:44 +02:00
egg.scm Merge remote-tracking branch 'origin/master' into core-updates-frozen 2021-11-08 09:06:14 +02:00
elpa.scm import: Factorize file hashing. 2022-01-06 16:27:30 +01:00
gem.scm import: gem: Emit new-style package inputs. 2021-07-20 23:43:29 +02:00
git.scm upstream: Support updating and fetching 'git-fetch' origins. 2022-01-06 16:27:30 +01:00
github.scm import: github: Gracefully handle projects that have disappeared. 2020-07-24 14:21:30 +02:00
gnome.scm import: gnome: Silence URL redirect messages. 2021-03-17 23:10:19 +01:00
gnu.scm import: Beautify descriptions when appropriate. 2021-12-17 17:29:34 +01:00
go.scm import: Factorize file hashing. 2022-01-06 16:27:30 +01:00
hackage.scm import: Beautify descriptions when appropriate. 2021-12-17 17:29:34 +01:00
json.scm import/json: json->code: Handle files with more than one definition. 2020-04-16 23:41:52 +02:00
kde.scm import: KDE updater finds packages even in sub-directory. 2019-09-10 19:04:06 +02:00
launchpad.scm import: launchpad: Fix typo. 2021-06-19 22:21:47 +02:00
minetest.scm upstream: Support updating and fetching 'git-fetch' origins. 2022-01-06 16:27:30 +01:00
opam.scm import: Beautify descriptions when appropriate. 2021-12-17 17:29:34 +01:00
print.scm Merge branch 'master' into core-updates-frozen 2021-11-17 23:43:14 +01:00
pypi.scm import: Beautify descriptions when appropriate. 2021-12-17 17:29:34 +01:00
stackage.scm import: stackage: Update to release 18.14. 2021-11-02 09:32:45 +01:00
texlive.scm import: texlive: Take different package database as optional argument. 2021-11-18 13:17:57 +00:00
utils.scm import: utils: Wrap lines in description. 2021-12-17 17:29:34 +01:00