guix: opam: More flexibility in the importer.
authorAlice BRENON <alice.brenon@ens-lyon.fr>
Sat, 7 Aug 2021 17:50:10 +0000 (19:50 +0200)
committerJulien Lepiller <julien@lepiller.eu>
Fri, 20 Aug 2021 22:05:21 +0000 (00:05 +0200)
commitfc29c80b9635ff490bcc768c774442043cb1e231
tree2c18164b3b38e6bd7ca2ef0deec4d37c4f571e9d
parent6d9d10ae3fae465625bcac52a968fd9828164b5c
guix: opam: More flexibility in the importer.

* guix/scripts/import/opam.scm: Pass all instances of --repo as a list
  to the importer.
* guix/import/opam.scm (opam-fetch): Stop expecting "expanded"
  repositories and call get-opam-repository instead to keep values
  "symbolic" as long as possible and factorize.
  (get-opam-repository): Use the same repository source as CLI opam does
  (i.e. HTTP-served index.tar.gz instead of git repositories).
  (find-latest-version): Be more flexible on the repositories structure
  instead of expecting packages/PACKAGE-NAME/PACKAGE-NAME.VERSION/.
* tests/opam.scm: Update the call to opam->guix-package since repo is
  now expected to be a list and remove the mocked get-opam-repository
  deprecated by the support for local folders by the actual
  implementation.
* doc/guix.texi: Document the new semantics and valid arguments for the
  --repo option.

Signed-off-by: Julien Lepiller <julien@lepiller.eu>
doc/guix.texi
guix/import/opam.scm
guix/scripts/import/opam.scm
tests/opam.scm