lb-run lookup not working for flat project structure
lb-run is not working on local stack build where there are no directories such as LHCb_HEAD. Interestingly it seems to find the version --list
$ lb-run --dev-dir . --list Run2Support
prod in ./Run2Support: x86_64_v2-centos7-gcc11-dbg
v1r1 in /cvmfs/lhcb.cern.ch/lib/lhcb/RUN2SUPPORT/RUN2SUPPORT_v1r1: x86_64-centos7-gcc9-opt x86_64-centos7-gcc9-dbg
v1r0 in /cvmfs/lhcb.cern.ch/lib/lhcb/RUN2SUPPORT/RUN2SUPPORT_v1r0: x86_64+avx2+fma-centos7-gcc9-opt x86_64-centos7-gcc9-opt x86_64-centos7-clang8-opt x86_64-centos7-gcc9-dbg x86_64-centos7-clang8-dbg x86_64-centos7-gcc9-do0
$ lb-run --dev-dir . --debug Run2Support
DEBUG:LbEnv.ProjectEnv.lookup:listPlatforms(name='Run2Support', version='prod', allow_empty_version=False)
DEBUG:LbEnv.ProjectEnv.lookup:check Run2Support_prod
DEBUG:LbEnv.ProjectEnv.lookup:check RUN2SUPPORT/RUN2SUPPORT_prod
DEBUG:LbEnv.ProjectEnv.lookup:check RUN2SUPPORT/prod
DEBUG:LbEnv.ProjectEnv.lookup:check /cvmfs/lhcb.cern.ch/lib/lhcb/Run2Support_prod
DEBUG:LbEnv.ProjectEnv.lookup:check /cvmfs/lhcb.cern.ch/lib/lhcb/RUN2SUPPORT/RUN2SUPPORT_prod
DEBUG:LbEnv.ProjectEnv.lookup:check /cvmfs/lhcb.cern.ch/lib/lhcb/RUN2SUPPORT/prod
DEBUG:LbEnv.ProjectEnv.lookup:check /cvmfs/lhcb.cern.ch/lib/lcg/releases/Run2Support_prod
DEBUG:LbEnv.ProjectEnv.lookup:check /cvmfs/lhcb.cern.ch/lib/lcg/releases/RUN2SUPPORT/RUN2SUPPORT_prod
DEBUG:LbEnv.ProjectEnv.lookup:check /cvmfs/lhcb.cern.ch/lib/lcg/releases/RUN2SUPPORT/prod
DEBUG:LbEnv.ProjectEnv.lookup:check /cvmfs/lhcb.cern.ch/lib/lcg/app/releases/Run2Support_prod
DEBUG:LbEnv.ProjectEnv.lookup:check /cvmfs/lhcb.cern.ch/lib/lcg/app/releases/RUN2SUPPORT/RUN2SUPPORT_prod
DEBUG:LbEnv.ProjectEnv.lookup:check /cvmfs/lhcb.cern.ch/lib/lcg/app/releases/RUN2SUPPORT/prod
DEBUG:LbEnv.ProjectEnv.lookup:check /cvmfs/lhcb.cern.ch/lib/lcg/external/Run2Support_prod
DEBUG:LbEnv.ProjectEnv.lookup:check /cvmfs/lhcb.cern.ch/lib/lcg/external/RUN2SUPPORT/RUN2SUPPORT_prod
DEBUG:LbEnv.ProjectEnv.lookup:check /cvmfs/lhcb.cern.ch/lib/lcg/external/RUN2SUPPORT/prod
DEBUG:LbEnv.ProjectEnv.lookup:check /cvmfs/lhcb.cern.ch/lib/contrib/Run2Support_prod
DEBUG:LbEnv.ProjectEnv.lookup:check /cvmfs/lhcb.cern.ch/lib/contrib/RUN2SUPPORT/RUN2SUPPORT_prod
DEBUG:LbEnv.ProjectEnv.lookup:check /cvmfs/lhcb.cern.ch/lib/contrib/RUN2SUPPORT/prod
DEBUG:LbEnv.ProjectEnv.lookup:check /cvmfs/lhcb.cern.ch/lib/var/lib/LbEnv/2199/stable/linux-64/lib/python3.8/site-packages/LbDevTools/data/cmake/Run2Support_prod
DEBUG:LbEnv.ProjectEnv.lookup:check /cvmfs/lhcb.cern.ch/lib/var/lib/LbEnv/2199/stable/linux-64/lib/python3.8/site-packages/LbDevTools/data/cmake/RUN2SUPPORT/RUN2SUPPORT_prod
DEBUG:LbEnv.ProjectEnv.lookup:check /cvmfs/lhcb.cern.ch/lib/var/lib/LbEnv/2199/stable/linux-64/lib/python3.8/site-packages/LbDevTools/data/cmake/RUN2SUPPORT/prod
WARNING:LbEnv.ProjectEnv.lookup:could not find Run2Support/prod in SearchPath([SearchPathEntry('.'), EnvSearchPathEntry('CMAKE_PREFIX_PATH', '/cvmfs/lhcb.cern.ch/lib/lhcb:/cvmfs/lhcb.cern.ch/lib/lcg/releases:/cvmfs/lhcb.cern.ch/lib/lcg/app/releases:/cvmfs/lhcb.cern.ch/lib/lcg/external:/cvmfs/lhcb.cern.ch/lib/contrib:/cvmfs/lhcb.cern.ch/lib/var/lib/LbEnv/2199/stable/linux-64/lib/python3.8/site-packages/LbDevTools/data/cmake'), EnvSearchPathEntry('CMTPROJECTPATH', ''), EnvSearchPathEntry('LHCBPROJECTPATH', '')])
ERROR:lb-run:current host does not support any of Run2Support/prod available platforms