-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Simplify the process of creating build caches for multiple packages at once #35602
Description
Summary
I'd like to make the process of creating build caches for multiple packages at once simpler. For example, after installing an entire environment, it would be nice if a single spack buildcache create call could be used to create a binary cache for everything, except packages for which the spack buildcache create command fails.
Rationale
Right now, spack aborts if it encounters an error when running spack buildcache create for all specs in an environment. This means that I need to create the build caches manually for each individual package, skipping the "bad" ones.
Description
My suggestion is to add a flag --skip-on-error to spack buildcache create, which is set to false by default so that the existing behavior isn't changed. If enabled, spack will ignore errors for individual packages, spit out a warning and continue on to the remaining packages.
Additional information
0.20.0.dev0 (def02dbc4389907d53bbdc97b7f6d45e7f9b08ad)
General information
- I have run
spack --versionand reported the version of Spack - I have searched the issues of this repo and believe this is not a duplicate