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

Override default apt repositories #29

Open
maksimkurb opened this issue Dec 25, 2024 · 1 comment
Open

Override default apt repositories #29

maksimkurb opened this issue Dec 25, 2024 · 1 comment

Comments

@maksimkurb
Copy link
Contributor

Is there any way to use our own APT repositories with a higher priority than the default ones?

I want to increase the speed of the pipeline and I need to point this buildpack to our own Nexus APT mirror.

But if I add :repo:deb row to the Aptfile, this repo is added to the bottom of the sources.list, hence having lower priority.

Is there any other way to override sources.list or maybe I should prepare pull-request to add custom repositories to the start of the sources.list, not to the end of it?

This change can be breaking if someone uses fagiani:apt-buildpack and has multiple repositories with the same package name but with different versions.

Another option can be if we add a new setting BP_APT_CLEAR_SOURCES_LIST to clear default sources.list file and then add all required repos manually, this should be backward-compatible.

What do you think?

@fagiani
Copy link
Owner

fagiani commented Dec 28, 2024

Hi Maksim,

Thank you for your thoughtful suggestion and for taking the time to detail your use case! I’ve opened Pull Request #30, which addresses the issue by adding custom repositories from the Aptfile to the beginning of the sources.list. This ensures that they take priority over the default ones, as you requested.

The backward compatibility is preserved. If you could review the changes and provide your feedback, I’d greatly appreciate it.

Looking forward to hearing your thoughts!

Best regards,
Carlos Fagiani Junior

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