aboutcode-org / aboutcode-org/back2source-data

Store d2d results in this repo

未关闭
#1 0 条评论 0 个 reaction 已指派 1 人 已被 @TG1999 认领 在 GitHub 查看
主要语言
Python
星标
0
派生
0
PR 合并指标
30 天内没有已合并 PR

描述

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

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。