Skip to content

spec.py: fix colors of various to str methods#51207

Merged
alalazo merged 3 commits intodevelopfrom
hs/fix/spec-str
Aug 25, 2025
Merged

spec.py: fix colors of various to str methods#51207
alalazo merged 3 commits intodevelopfrom
hs/fix/spec-str

Conversation

@haampie
Copy link
Copy Markdown
Member

@haampie haampie commented Aug 22, 2025

  • fix a bug where spack -v concretize output would print foo ^gcc instead of foo %gcc, which was a bug in Spec.long_spec
  • make some format function color=true/false/none aware
  • make args explicit in cformat(*args, **kwargs)
  • group the str/format related functions in the Spec class

and add a test for `Spec.long_spec`

Signed-off-by: Harmen Stoppels <[email protected]>
Signed-off-by: Harmen Stoppels <[email protected]>
@haampie haampie force-pushed the hs/fix/spec-str branch 2 times, most recently from 86f7367 to a47fd41 Compare August 22, 2025 14:07
Signed-off-by: Harmen Stoppels <[email protected]>
@alalazo alalazo self-assigned this Aug 25, 2025
@alalazo alalazo merged commit d2430d6 into develop Aug 25, 2025
33 checks passed
@alalazo alalazo deleted the hs/fix/spec-str branch August 25, 2025 07:38
@haampie haampie added the v1.0.2 PRs / Bug fixes to backport for v1.0.2 label Aug 25, 2025
@alalazo alalazo mentioned this pull request Aug 25, 2025
26 tasks
alalazo pushed a commit that referenced this pull request Sep 9, 2025
* Fix a bug where `spack -v concretize` output would print foo ^gcc instead of foo %gcc

* Make some format function color=true/false/none aware

* Make args explicit in cformat(*args, **kwargs)

* Group the str/format related functions in the Spec class

Signed-off-by: Harmen Stoppels <[email protected]>
haampie added a commit that referenced this pull request Sep 12, 2025
* Fix a bug where `spack -v concretize` output would print foo ^gcc instead of foo %gcc

* Make some format function color=true/false/none aware

* Make args explicit in cformat(*args, **kwargs)

* Group the str/format related functions in the Spec class

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

Labels

v1.0.2 PRs / Bug fixes to backport for v1.0.2

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants