You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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.
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 thesources.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 defaultsources.list
file and then add all required repos manually, this should be backward-compatible.What do you think?
The text was updated successfully, but these errors were encountered: