Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix: allow preferred new versions from externals #37747

Merged
merged 6 commits into from
May 18, 2023

Conversation

scheibelp
Copy link
Member

@scheibelp scheibelp commented May 17, 2023

This fixes a bug introduced by #37687

Allow adding a preference for a version defined in an external, even if that version doesn't appear in the package.py.

See: #37733 (comment)

In asp.py, this moves version collection related to preferences/requirements until after external packages are defined. The other option that occurs to me is to collect any version unique to the preferences/requirements and then verify after external packages are defined, but there doesn't seem to be anything important about the original order (or for example defining versions before variants).

@spackbot-app spackbot-app bot added core PR affects Spack core functionality tests General test capability(ies) labels May 17, 2023
@tgamblin tgamblin added this to the v0.20.0 milestone May 17, 2023
@tgamblin tgamblin requested review from haampie and alalazo May 17, 2023 20:52
@alalazo alalazo mentioned this pull request May 17, 2023
14 tasks
@bvanessen
Copy link
Contributor

@scheibelp This works for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core PR affects Spack core functionality tests General test capability(ies)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants