spack/etc/spack/defaults
Jonathon Anderson a423dc646a
Update the binary index before attempting direct fetches (#32137)
"spack install" will not update the binary index if given a concrete
spec, which causes it to fall back to direct fetches when a simple
index update would have helped. For S3 buckets in particular, this
significantly and needlessly slows down the install process.

This commit alters the logic so that the binary index is updated
whenever a by-hash lookup fails. The lookup is attempted again with
the updated index before falling back to direct fetches. To avoid
updating too frequently (potentially once for each spec being
installed), BinaryCacheIndex.update now includes a "cooldown"
option, and when this option is enabled it will not update more
than once in a cooldown window (set in config.yaml).

Co-authored-by: Tamara Dahlgren <35777542+tldahlgren@users.noreply.github.com>
2022-10-19 09:36:27 -06:00
..
cray Don't set LD_LIBRARY_PATH by default on Linux (#28354) 2022-08-11 09:33:08 -05:00
darwin Relative paths in default prefix_inspections start with ./ (#31867) 2022-08-23 12:54:12 -07:00
linux Don't set LD_LIBRARY_PATH by default on Linux (#28354) 2022-08-11 09:33:08 -05:00
windows Expand external find for Windows (#27588) 2022-03-17 09:01:01 -07:00
bootstrap.yaml Update bootstrap buildcache to v0.3 (#32262) 2022-09-02 12:48:46 +02:00
concretizer.yaml Deprecate spack:concretization over concretizer:unify (#30038) 2022-05-23 13:20:34 -07:00
config.yaml Update the binary index before attempting direct fetches (#32137) 2022-10-19 09:36:27 -06:00
mirrors.yaml Use AWS CloudFront for source mirror (#23978) 2021-05-28 00:18:30 -07:00
modules.yaml Relative paths in default prefix_inspections start with ./ (#31867) 2022-08-23 12:54:12 -07:00
packages.yaml go,gcc: Support external go compilers for Go bootstrap (#27769) 2022-10-18 10:18:49 -07:00
repos.yaml Add "default" configuration scope. 2016-07-19 17:10:17 -07:00