[Bug 268728] Mk/Uses/cargo.mk: 'make cargo-crates' adds a line to CARGO_CRATES that cargo.mk can't handle

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 03 Jan 2023 12:54:54 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=268728

--- 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"] = tolower(url["scheme"])
        url["host"] = tolower(url["host"])
-       if (url["scheme"] ~ /^git(\+https?)?$/) {
+       if (url["scheme"] ~ /^git(\+(ssh|https?))?$/) {
                if (url["host"] == "github.com") {
                        split(url["path"], path, "/")
                        account = path[2]
#+end_src

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