~ruther/guix-local

a677cc54477e7383c56d8d968120f51cf430e767 — Ignas Lapėnas 6 months ago 66599e2
import: crate: Allow "~" in source URL.

When using `guix import -i ... -f .../Cargo.lock`, lookup-cargo-inputs
generation fails if url has git.sr.ht source, since the url for username
contains ~
Ex. https://git.sr.ht/~hitwright/scheduler_common

* guix/import/crate/cargo-lock.scm: Add "~" to crate source pattern.

Change-Id: I40f0bb747594f817f3d26123328e8716e5bef5f4
Signed-off-by: Hilton Chain <hako@ultrarare.space>
1 files changed, 1 insertions(+), 1 deletions(-)

M guix/import/crate/cargo-lock.scm
M guix/import/crate/cargo-lock.scm => guix/import/crate/cargo-lock.scm +1 -1
@@ 72,7 72,7 @@
(define-peg-pattern crate-source all
  (and (or "registry" "git")
       "+https://"
       (+ (or "/" "." "?" "=" "-" "#" "_"
       (+ (or "/" "." "?" "=" "-" "#" "_" "~"
              alphanumeric-char))))

;; checksum