spack/lib/spack
Harmen Stoppels 68b711c1ad
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-02-16 10:36:22 -08:00
..
docs Add a maintainers directive (#35083) 2023-01-27 07:51:24 +01:00
env license year bump (#34921) 2023-01-18 14:30:17 -08:00
external license year bump (#34921) 2023-01-18 14:30:17 -08:00
llnl view: fix issue with non-contributing specs (#34661) 2023-02-16 10:36:22 -08:00
spack view: fix issue with non-contributing specs (#34661) 2023-02-16 10:36:22 -08:00
spack_installable license year bump (#34921) 2023-01-18 14:30:17 -08:00