spack/lib/spack
Harmen Stoppels 187f8e9f4a view: fix issue with non-contributing specs (#34661)
Specs that did not contribute any files to an env view caused a problem
where zip(specs, files grouped by prefix) got "out of sync", causing the
wrong merge map to be passed to a package's `add_files_to_view`, which
specifically caused an issue where *sometimes* bin/python ended up as a
symlink instead of a copy.

One such example is kokkos + kokkos-nvcc-wrapper, as the latter package
only provides the file bin/nvcc_wrapper, which is also added to view by
kokkos, causing kokkos-nvcc-wrapper to contribute 0 files.

The test feels a bit contrived, but it captures the problem... pkg a is
added first and has 0 files to contribute, pkg b adds a single file, and
we check if pkg b receives a merge map (and a does not).
2023-04-03 16:51:02 +02:00
..
docs docs: remove monitors and analyzers (#34358) 2023-02-07 20:13:56 +01:00
env Cray support: use linux platform for newer craype versions (#29392) 2022-11-04 14:52:11 -07:00
external archspec: update version, translate renamed uarchs (#33556) 2022-11-07 04:50:38 -08:00
llnl view: fix issue with non-contributing specs (#34661) 2023-04-03 16:51:02 +02:00
spack view: fix issue with non-contributing specs (#34661) 2023-04-03 16:51:02 +02:00
spack_installable encode development requirements in pyproject.toml (#32616) 2022-11-07 15:00:22 -08:00