Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 03 Jan 2023 12:54:54 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 268728] Mk/Uses/cargo.mk: 'make cargo-crates' adds a line to CARGO_CRATES that cargo.mk can't handle
Message-ID:  <bug-268728-7788-HQRjzFHaSK@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-268728-7788@https.bugs.freebsd.org/bugzilla/>
References:  <bug-268728-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D268728

--- Comment #1 from Tobias Kortkamp <tobik@freebsd.org> ---
Try this and please commit it if it works.

#+begin_src diff
diff --git a/Mk/Scripts/cargo-crates-git-common.awk
b/Mk/Scripts/cargo-crates-git-common.awk
index f4023bb4f880..81b218945a5b 100644
--- a/Mk/Scripts/cargo-crates-git-common.awk
+++ b/Mk/Scripts/cargo-crates-git-common.awk
@@ -43,7 +43,7 @@ function split_git_url(info, git_url,         url, path,
account, project, commit, i, d
        split_url(url, git_url)
        url["scheme"] =3D tolower(url["scheme"])
        url["host"] =3D tolower(url["host"])
-       if (url["scheme"] ~ /^git(\+https?)?$/) {
+       if (url["scheme"] ~ /^git(\+(ssh|https?))?$/) {
                if (url["host"] =3D=3D "github.com") {
                        split(url["path"], path, "/")
                        account =3D path[2]
#+end_src

--=20
You are receiving this mail because:
You are on the CC list for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-268728-7788-HQRjzFHaSK>