Skip to content

spack mirror create creates broken symlinks #14067

@iarspider

Description

@iarspider

I ran spack mirror create -d /home/razumov/eos -D -n 1 my-bundle (where my-bundle is a bundle packages with a ton of dependencies). The command ran fine, but the symlinks in /home/razumov/eos were broken, e.g.:

$ pwd
/home/razumov/spack 
$ ls -l /home/razumov/eos/aida
eos/aida/aida-3.2.1.tar.gz -> ../../spack/_source-cache/archive/c5/c51da83e99c0985a7ef3e8bc5a60c3ae61f3ca603b61100c2438b4cdadd5bb2e.tar.gz
$ ls -l /home/razumov/eos/aida/../../spack/_source-cache/archive/c5/c51da83e99c0985a7ef3e8bc5a60c3ae61f3ca603b61100c2438b4cdadd5bb2e.tar.gz
ls: cannot access /home/razumov/eos/aida/../../spack/_source-cache/archive/c5/c51da83e99c0985a7ef3e8bc5a60c3ae61f3ca603b61100c2438b4cdadd5bb2e.tar.gz: No such file or directory

There is no _source-cache under /home/razumov/spack - but there is one under /home/razumov/eos:

$ ls /home/razumov/eos/_source-cache/archive/c5/c51da83e99c0985a7ef3e8bc5a60c3ae61f3ca603b61100c2438b4cdadd5bb2e.tar.gz
rw-r--r--. 1 razumov razumov 313562 Dec 10 14:50 /home/razumov/eos/_source-cache/archive/c5/c51da83e99c0985a7ef3e8bc5a60c3ae61f3ca603b61100c2438b4cdadd5bb2e.tar.gz

Steps to reproduce the issue

$ spack mirror create -d /some/path -D -n1 [email protected]
$ ls /some/path/aida

Error Message

None

Information on your system

spack commit c627e5a

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions