spack/lib/spack/llnl/util
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
..
tty colify.py: get rid of **kwargs (#35641) 2023-02-23 11:18:54 -08:00
__init__.py license year bump (#34921) 2023-01-18 14:30:17 -08:00
argparsewriter.py license year bump (#34921) 2023-01-18 14:30:17 -08:00
filesystem.py Windows: properly handle symlink failures (#36003) 2023-03-17 10:19:32 -07:00
lang.py Style: black 23, skip magic trailing comma (#35351) 2023-02-16 23:06:12 -06:00
link_tree.py environment views: better, earlier error on clash (#35541) 2023-02-20 19:14:27 +01:00
lock.py license year bump (#34921) 2023-01-18 14:30:17 -08:00
multiproc.py Fix broken links in docs (#35582) 2023-02-20 09:21:18 +01:00
symlink.py Windows: properly handle symlink failures (#36003) 2023-03-17 10:19:32 -07:00