Skip to content

Simplify the process of creating build caches for multiple packages at once #35602

@climbfuji

Description

@climbfuji

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 --version and reported the version of Spack
  • I have searched the issues of this repo and believe this is not a duplicate

Metadata

Metadata

Assignees

Labels

featureA feature is missing in Spack

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions