Skip to content

bugfix: reorder variants in Spec strings#16462

Merged
becker33 merged 3 commits intodevelopfrom
bugfix/order-variants-reusable
May 12, 2020
Merged

bugfix: reorder variants in Spec strings#16462
becker33 merged 3 commits intodevelopfrom
bugfix/order-variants-reusable

Conversation

@becker33
Copy link
Copy Markdown
Member

@becker33 becker33 commented May 4, 2020

Fixes #15362

Reorder variant strings so that ~foo can never be printed in a spec. This avoids bugs in zsh when users try to reuse Specs. See #15362 for details.

@becker33
Copy link
Copy Markdown
Member Author

becker33 commented May 4, 2020

@adrienbernede can you confirm this fixes your reported issue?

@alalazo alalazo self-assigned this May 12, 2020
@alalazo alalazo closed this May 12, 2020
@alalazo alalazo reopened this May 12, 2020
@alalazo alalazo self-requested a review May 12, 2020 16:31
@alalazo
Copy link
Copy Markdown
Member

alalazo commented May 12, 2020

Confirmed that the issue in #15362 is there on develop and solved with this PR.

@adrienbernede
Copy link
Copy Markdown
Contributor

Sorry for missing that...
Works for me too!

@becker33 becker33 merged commit 0307111 into develop May 12, 2020
@alalazo alalazo deleted the bugfix/order-variants-reusable branch May 12, 2020 17:26
becker33 added a commit that referenced this pull request Jul 11, 2020
* change print order for variants to avoid zsh parsing bugs

* change tests for new variant parse order
vjranagit pushed a commit to vjranagit/spack that referenced this pull request Jan 18, 2026
* change print order for variants to avoid zsh parsing bugs

* change tests for new variant parse order
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

spack prints spec that is not reusable ( CMakePackage + ~variant )

3 participants