Skip to content

Error in tasks.*.inputs and tasks.*.outputs with symlinks to folders #5417

@diegoferigo-rai

Description

@diegoferigo-rai

Checks

  • I have checked that this issue has not already been reported.

  • I have confirmed this bug exists on the latest version of pixi, using pixi --version.

Reproducible example

With the following pixi.toml

[workspace]
authors = ["Diego Ferigo <dgferigo@gmail.com>"]
channels = ["conda-forge"]
name = "pixi_test"
platforms = ["linux-64"]
version = "0.1.0"

[tasks.ls_cached]
cmd = "ls my_dir/"
inputs = ["my_dir"]

[dependencies]

Running in the following folder structure:

.
├── my_dir
│   ├── my_file.txt -> ../my_file.txt
│   └── other_dir -> ../other_dir/
├── my_file.txt
├── other_dir
├── pixi.lock
└── pixi.toml

3 directories, 4 files

Issue description

Running the following fails:

dferigo@dferigo-LT:/tmp/pixi_test$ pixi run ls_cached
✨ Pixi task (ls_cached): ls my_dir/                                                                                                                                                                                my_file.txt  other_dir
Error:   × I/O error while reading file /tmp/pixi_test/my_dir/other_dir
  ╰─▶ Is a directory (os error 21)

Expected behavior

Symlink to files work as expected, but not those to folders. I'd expect pixi to follow the symlink also to folders.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions