spack/lib/spack/llnl
John W. Parent 8195f27a66
Windows: properly handle symlink failures (#36003)
In the Windows filesystem logic for creating a symlink, we intend to
fall back to a copy when the symlink cannot be created (for some
configuration settings on Windows it is not possible for the user
to create a symlink). It turns out we were overly-broad in which
exceptions lead to this fallback, and the subsequent copy would
also fail: at least one case where this occurred is when we
attempted to create a symlink that already existed.

The updated logic expressly avoids falling back to a copy when the
file/symlink already exists.
2023-03-17 10:19:32 -07:00
..
util Windows: properly handle symlink failures (#36003) 2023-03-17 10:19:32 -07:00
__init__.py license year bump (#34921) 2023-01-18 14:30:17 -08:00