aboutcode-org / aboutcode-org/back2source-data

Store d2d results in this repo

Ouverte
#1 0 commentaires 0 réactions 1 personne assignée Réclamée par @TG1999 Voir sur GitHub
Langage dominant
Python
Étoiles
0
Forks
0
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

We should store d2d results in this repo for easier review, including the script that call the purlcli, and uses the list of input data from https://github.com/nexB/purldb/issues/421

I could envision a flow like this:
![image](https://github.com/aboutcode-org/back2source-data/assets/675997/f096d3fc-242d-4c91-8459-0c8af0a92bfe)
(Created with https://mermaid.live/edit#pako:eNp1kDFPAzEMhf-KlZUrQ8cMXahAIAESp25ZTOJrI3LJ4cRIVdX_jq8FQZHIZEffe8_2wfgSyFhT6V0oe1pH3DKOLoO-6jlObbFaXU3Cyado4UUyhGWAoTAgzN9n9AuY2bNKUWrCGR765ydgqpJa_Wv7iM3vbnSC61gs3JJ2MEhKimC-FP1GL1M8xQ_6T_aT9Yr-bVmLsKdFwIYW-laYLjQQM9zFpu1UOpAa8xbajk7bwWnjzeZ-DVi1CpHJq8PeZdOZkXjEGPSShznYGZWN5IzVMtCA6u6My0dFUVrp99kb21ioMzLpON-HN3bAVOn4Cd2hjGE )

The code to store the d2d results could me more or less like this, using the "From" side of a URL pair
```
>>> url="https://repo1.maven.org/maven2/org/apache/htrace/htrace-core4/4.2.0-incubating/htrace-core4-4.2.0-incubating-sources.jar#from"
>>> _,_, url=url.partition("://")
>>> url
'repo1.maven.org/maven2/org/apache/htrace/htrace-core4/4.2.0-incubating/htrace-core4-4.2.0-incubating-sources.jar#from'
>>> url,_, _ =url.rpartition("#")
>>> url
'repo1.maven.org/maven2/org/apache/htrace/htrace-core4/4.2.0-incubating/htrace-core4-4.2.0-incubating-sources.jar'
>>> from pathlib import Path
>>> p=Path(url)
>>> p.mkdir(parents=True)
```

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.