custom_sources should dynamically choose remotes to make it easier for open source developers to build
.custom_sources.yml
in the root directory lists remote repositories to install during a build. By default, it references repositories that are only accessible by employees (dev.gitlab.org
).
It asks open source developers to edit the file in order to make builds. There is probably a better way to handle this, and that is what this issue is asking for.
I would recommend the following:
- Allow the
.custom_sources.yml
file to declare multiple "remote" entries. - Update
version
object references inomnibus-gitlab
to dynamically check accessibility in eachversion.remotes
when declared and use whichever entry works first.
A more comprehensive alternative to this: have the nested values in .custom_sources.yml
declare an "environment" which can be set via the shell, such as export CUSTOM_SOURCES_ENV=dev
or export CUSTOM_SOURCES_ENV=public
. This might be the optimal solution because it would require the least amount of work.
Thoughts are appreciated.