spack/lib/spack
Xavier Delaruelle 7e4927b892
modules: correctly detect explicit installation (#36533)
When generating modulefile, correctly detect software installation asked
by user as explicit installation.

Explicit installation status were previously fetched from database
record of spec, which was only set after modulefile generation.

Code is updated to pass down the explicit status of software
installation to the object that generates modulefiles.

Fixes #34730.
Fixes #12105.

A value for the explicit argument has to be set when creating a new
installation, but for operations on existing installation, this value is
retrieved from database. Such operations are: module rm, module refresh,
module setdefaults or when get_module function is used.

Update on the way tests that mimics an installation, thus explicit
argument has to be set under such situation.
2023-04-03 11:19:18 +02:00
..
docs modules tcl: switch default all:autoload from none to direct (#36269) 2023-03-23 07:49:17 +01:00
env compiler wrapper: fix -Xlinker parsing (#35929) 2023-03-31 09:47:24 -07:00
external license year bump (#34921) 2023-01-18 14:30:17 -08:00
llnl Add llnl.util.filesystem.find_first (#36083) 2023-03-27 09:42:16 -07:00
spack modules: correctly detect explicit installation (#36533) 2023-04-03 11:19:18 +02:00
spack_installable license year bump (#34921) 2023-01-18 14:30:17 -08:00