aboutcode-org / aboutcode-org/purldb

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

Ouverte
#470 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
data
Langage dominant
HTML
Étoiles
67
Forks
69
Merge moyen
8 j 8 h
PR mergées (30 j)
1

Description

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`.

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.