Skip to content

Disable repository validation during precompile step

In trying to build 8.10, we ran into a build error due to /home/git/repositories not existing due to a validation step introduced at the last minute in !5145 (merged). For now, we changed the omnibus build to create this directory, but we really should either:

  1. Disable the validation during the precompile step
  2. Make gitlab.yml use an existing path (it currently uses the default in gitlab.yml.example)

I think the first approach is probably the right one. The question then becomes: What is the best way to do this?

Currently omnibus uses the USE_DB environment variable to disable database connections. We could reuse that, but that doesn't feel quite right. Maybe we need an explicit environment variable (e.g. BYPASS_REPO_VALIDATION or PRECOMPILE=true) to indicate this?

/cc: @eReGeBe, @marin, @rymai