Skip to content

when condition of variant ignored #51248

@simonpintarelli

Description

@simonpintarelli

Steps to reproduce

When nvhpc has not already been installed, spack spec quantum-espresso+cuda gives an unexpected result, it concretizes to quantum-espresso %c,cxx=fortran=gcc@15, despite having variant('cuda') inside a with when('%nvhpc').

Information on your system

General information

  • I have run spack debug report and reported the version of Spack/Python/Platform
  • I have searched the issues of this repo and believe this is not a duplicate
  • I have run the failing commands in debug mode and reported the output

Metadata

Metadata

Assignees

Labels

Type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions