paketo-buildpacks / libpak

An opinionated extension to the libcnb Cloud Native Buildpack Library
Apache License 2.0
15 stars 17 forks source link

Allow hostname specific dependency mirrors #322

Closed bitgully closed 4 months ago

bitgully commented 4 months ago

Summary

Enhances the use of dependency mirrors introduced in #315. Changes have been applied according to the conversation in https://github.com/paketo-buildpacks/rfcs/pull/302 (Readable).

This change allows for setting separate mirror locations for each hostname in the dependencies' original URIs. A default mirror can still be used for all other dependencies.

Use Cases

This is required in networks where not all dependencies should be pulled from the same mirror location.

Checklist

dmikusa commented 4 months ago

Thanks for this PR. I added some thoughts/questions. Let me know what you think.

bitgully commented 4 months ago

@dmikusa Would you agree with my responses or do you think this needs more attention? Any specific ideas how we should go about adding this to packit?

loewenstein commented 4 months ago

Any specific ideas how we should go about adding this to packit?

I think that is already in progress with https://github.com/paketo-buildpacks/packit/pull/563

dmikusa commented 4 months ago

Sorry for the delay. I think this is looking good. Just one last question for you.

Thanks again for your work on this!