Skip to content

Add support for environment variable override of LCG version

Christopher Rob Jones requested to merge add-lcg-version-env-var-override into master

Stack now has support for determining the LCG version based on OS version. This though is a one time deal, the determination is made the first time a stack is configured, and cached into utils/config.json. Yes, the user can change this, but this requires editing this file which is not suitable for some scenarios.

In my workflow I need to be able to simultaneously build for el9 using LCG105 in one terminal, and in a second terminal on a centos7 machine build for that platform using LCG104. Having the LCG version read from a config file simply doesn't work for me in this case.

This MR adds a minor change to the build env script to, taking inspiration from BINARY_TAG_OVERRIDE, add support for an optional LCG_VERSION_OVERRIDE env var, which if the user sets is used to override the version used.

Edited by Christopher Rob Jones

Merge request reports