Skip to content

bugfix: display when conditions with dependencies in spack info#51588

Merged
alalazo merged 1 commit intodevelopfrom
bugfix-deps-in-info-when-conditions
Nov 21, 2025
Merged

bugfix: display when conditions with dependencies in spack info#51588
alalazo merged 1 commit intodevelopfrom
bugfix-deps-in-info-when-conditions

Conversation

@tgamblin
Copy link
Copy Markdown
Member

#51137 displays when conditions for dependencies, but it doesn't display direct or transitive dependencies in conditions. This is used frequently for things like

  • when="^[email protected]:": optional deps for particular pythons
  • when="%clang@34:": optional deps depending on build compiler
  • change format for when from Spec.format() to _long_spec()
  • add a test

Try spack info py-sphinx-theme-builder or spack -m info optional-dep-test to see.

#51137 displays `when` conditions for dependencies, but it doesn't
display direct or transitive dependencies in conditions. This is
used frequently for things like

* `when="^[email protected]:"`: optional deps for particular pythons
* `when="%clang@34:"`: optional deps depending on build compiler

- [x] change format for when from `Spec.format()` to `_long_spec()`
- [x] add a test

Signed-off-by: Todd Gamblin <[email protected]>
@alalazo alalazo self-assigned this Nov 21, 2025
@alalazo alalazo merged commit c9656d4 into develop Nov 21, 2025
31 of 32 checks passed
@alalazo alalazo deleted the bugfix-deps-in-info-when-conditions branch November 21, 2025 18:22
psakievich pushed a commit to psakievich/spack that referenced this pull request Dec 1, 2025
…pack#51588)

spack#51137 displays `when` conditions for dependencies, but it doesn't
display direct or transitive dependencies in conditions. This is
used frequently for things like

* `when="^[email protected]:"`: optional deps for particular pythons
* `when="%clang@34:"`: optional deps depending on build compiler

- [x] change format for when from `Spec.format()` to `_long_spec()`
- [x] add a test

Signed-off-by: Todd Gamblin <[email protected]>
becker33 pushed a commit that referenced this pull request Jan 10, 2026
…51588)

#51137 displays `when` conditions for dependencies, but it doesn't
display direct or transitive dependencies in conditions. This is
used frequently for things like

* `when="^[email protected]:"`: optional deps for particular pythons
* `when="%clang@34:"`: optional deps depending on build compiler

- [x] change format for when from `Spec.format()` to `_long_spec()`
- [x] add a test

Signed-off-by: Todd Gamblin <[email protected]>
@becker33 becker33 mentioned this pull request Jan 10, 2026
2 tasks
becker33 pushed a commit that referenced this pull request Jan 11, 2026
…51588)

#51137 displays `when` conditions for dependencies, but it doesn't
display direct or transitive dependencies in conditions. This is
used frequently for things like

* `when="^[email protected]:"`: optional deps for particular pythons
* `when="%clang@34:"`: optional deps depending on build compiler

- [x] change format for when from `Spec.format()` to `_long_spec()`
- [x] add a test

Signed-off-by: Todd Gamblin <[email protected]>
Signed-off-by: Gregory Becker <[email protected]>
becker33 pushed a commit that referenced this pull request Jan 15, 2026
…51588)

#51137 displays `when` conditions for dependencies, but it doesn't
display direct or transitive dependencies in conditions. This is
used frequently for things like

* `when="^[email protected]:"`: optional deps for particular pythons
* `when="%clang@34:"`: optional deps depending on build compiler

- [x] change format for when from `Spec.format()` to `_long_spec()`
- [x] add a test

Signed-off-by: Todd Gamblin <[email protected]>
Signed-off-by: Gregory Becker <[email protected]>
vjranagit pushed a commit to vjranagit/spack that referenced this pull request Jan 18, 2026
…pack#51588)

spack#51137 displays `when` conditions for dependencies, but it doesn't
display direct or transitive dependencies in conditions. This is
used frequently for things like

* `when="^[email protected]:"`: optional deps for particular pythons
* `when="%clang@34:"`: optional deps depending on build compiler

- [x] change format for when from `Spec.format()` to `_long_spec()`
- [x] add a test

Signed-off-by: Todd Gamblin <[email protected]>
Signed-off-by: Gregory Becker <[email protected]>
becker33 pushed a commit that referenced this pull request Jan 22, 2026
…51588)

#51137 displays `when` conditions for dependencies, but it doesn't
display direct or transitive dependencies in conditions. This is
used frequently for things like

* `when="^[email protected]:"`: optional deps for particular pythons
* `when="%clang@34:"`: optional deps depending on build compiler

- [x] change format for when from `Spec.format()` to `_long_spec()`
- [x] add a test

Signed-off-by: Todd Gamblin <[email protected]>
Signed-off-by: Gregory Becker <[email protected]>
becker33 pushed a commit that referenced this pull request Jan 26, 2026
…51588)

#51137 displays `when` conditions for dependencies, but it doesn't
display direct or transitive dependencies in conditions. This is
used frequently for things like

* `when="^[email protected]:"`: optional deps for particular pythons
* `when="%clang@34:"`: optional deps depending on build compiler

- [x] change format for when from `Spec.format()` to `_long_spec()`
- [x] add a test

Signed-off-by: Todd Gamblin <[email protected]>
Signed-off-by: Gregory Becker <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants