alces-software / gridware

tool for compilation and installation of applications and libraries from the Alces Gridware software library
0 stars 0 forks source link

Bad variants supplied to dependencies #1

Closed RuanEllis closed 7 years ago

RuanEllis commented 7 years ago

When building packages with variants, the variant of the root package is accidentally passed through to the dependency being built. Noticed in a smoke-test environment - which was caused by another issue, however it's a bug that should be fixed anyway.

For example: alces gridware install main/apps/hdf5/1.8.13 --no-binary --variant all would pull in mpi/openmpi as specified in it's metadata, which would then attempt to be installed with the --variant all option which will fail with ERROR: Invalid variant 'mpi' for package 'openmpi' - this package has no variants.

RGE