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

Ignore external packages when pushing to buildcache automatically (--autopush) #43930

Merged
merged 3 commits into from
May 2, 2024

Conversation

adrienbernede
Copy link
Contributor

I noticed failures attempting to populate a build cache using --autopush with a spec that had external packages.

It turns out that the corresponding hook wasn’t ignoring external packages as the buildcache original logic does:

return [s for s in itertools.chain(roots, deps) if not s.external]

This PR adds the missing logic.

@haampie

@spackbot-app spackbot-app bot added the core PR affects Spack core functionality label May 1, 2024
@tldahlgren tldahlgren requested a review from haampie May 1, 2024 23:19
@haampie haampie merged commit a0aa356 into develop May 2, 2024
36 checks passed
@haampie haampie deleted the woptim/buildcache-autopush-ignore-externals branch May 2, 2024 07:50
tldahlgren pushed a commit to tldahlgren/spack that referenced this pull request May 8, 2024
arezaii pushed a commit to arezaii/spack that referenced this pull request May 31, 2024
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants