key4hep / key4hep-spack

A Spack recipe repository of Key4hep software.
10 stars 23 forks source link

`CLDCONFIG` env variable ends in `:` leading to errors #605

Closed Zehvogel closed 3 months ago

Zehvogel commented 3 months ago

Is it because of the usage of prepend?

[lreichen@pcphsft121 CLDConfig]$ ls $CLDCONFIG 
ls: cannot access '/cvmfs/sw-nightlies.hsf.org/key4hep/releases/2024-07-03/x86_64-almalinux9-gcc11.4.1-opt/cldconfig/cb2e380be92eee42608f22fe1c341bf45c3f080c_develop-4c5ul4:': No such file or directory
jmcarcell commented 3 months ago

Very likely. Let's see tomorrow with #606. However, I think this should not happen from a look at the code in spack unless prepend_path is called multiple times.