Skip to content

windows: don't make symlink fall back to copy. #29635

@haampie

Description

@haampie

Steps to reproduce

I find it surprising that symlink falls back to a copy on Windows, and in some cases it is just bad. In particular here:

symlink(new_root, tmp_symlink_name)

The trick is to update views atomically, effectively

ln -s new_dir ._view_link
mv ._view_link view

Can symlink just remain a symlink instead of something hard to reason about?

Error message

No response

Information on your system

.

General information

  • I have run spack debug report and reported the version of Spack/Python/Platform
  • I have searched the issues of this repo and believe this is not a duplicate
  • I have run the failing commands in debug mode and reported the output

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingtriageThe issue needs to be prioritizedwindows

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions