Page MenuHomeSoftware Heritage

maven: Pass the base URL of the Maven instance to the loader
ClosedPublic

Authored by vlorentz on Dec 7 2021, 1:51 PM.

Details

Summary

I would like to use it as the metadata authority URI in the loader,
instead of '{p_url.scheme}://{p_url.netloc}/', which I do not think
is accurate, as it is possible to have multiple Maven instances at
the same netloc.

Diff Detail

Repository
rDLS Listers
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

Build is green

Patch application report for D6770 (id=24564)

Rebasing onto 15fa84cf7e...

Current branch diff-target is up to date.
Changes applied before test
commit fa7ecc8fbdf0afb54fad0c3acec58c3f646758b2
Author: Valentin Lorentz <vlorentz@softwareheritage.org>
Date:   Tue Dec 7 13:51:00 2021 +0100

    maven: Pass the base URL of the Maven instance to the loader
    
    I would like to use it as the metadata authority URI in the loader,
    instead of '{p_url.scheme}://{p_url.netloc}/', which I do not think
    is accurate, as it is possible to have multiple Maven instances at
    the same netloc.

See https://jenkins.softwareheritage.org/job/DLS/job/tests-on-diff/431/ for more details.

Makes sense. LGTM.
Thanks @vlorentz for the improvement.
(oh, I didn't click on submit, sorry)

This revision is now accepted and ready to land.Dec 8 2021, 10:31 AM