Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Store d2d results in this repo #1

Open
pombredanne opened this issue Jun 10, 2024 · 0 comments
Open

Store d2d results in this repo #1

pombredanne opened this issue Jun 10, 2024 · 0 comments
Assignees

Comments

@pombredanne
Copy link
Member

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 aboutcode-org/purldb#421

I could envision a flow like this:
image
(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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants