aboutcode-org / aboutcode-org/purldb

How is vcs_url changed if at all when git_url has a non-https prefix or .git suffix?

Offen
#470 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
data
Vorherrschende Sprache
HTML
Sterne
67
Forks
69
Ø Merge
8 T. 8 Std.
Gemergte PRs (30 T.)
1

Beschreibung

Looking at some non-cocoapods `vcs_url` values (generated from `info()` in `fetchcode/package.py`) -- which often come from the `git_url` value in `https://api.github.com/repos/{repo_owner}/{repo_name}` for those PURLs with a GH repo -- I see some that look like this

- for `pkg:github/avahi/avahi@0.8` -- `"vcs_url": "git://github.com/avahi/avahi.git"` (in https://api.github.com/repos/avahi/avahi, we see `"git_url": "git://github.com/avahi/avahi.git"`)

or

- for `pkg:npm/canonical-path@1.0.0` -- `"vcs_url": "git+https://github.com/petebacondarwin/node-canonical-path.git"` (in https://api.github.com/repos/petebacondarwin/node-canonical-path it's slightly different from the `vcs_url` -- `"git_url": "git://github.com/petebacondarwin/node-canonical-path.git"`)

and others like this

- for `pkg:npm/canonical-path@0.0.2` -- `"vcs_url": "https://github.com/petebacondarwin/node-canonical-path"` (as noted just above for @1.0.0, the `git_url` starts with `git:` and ends with `.git`.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.