Skip to content

--output-dir fails on cross-device destinationΒ #2671

@castedo

Description

@castedo

Bug description

STEPS: from empty directory on Linux

sudo mkdir /tmp2
sudo mount -t tmpfs tmpfs /tmp2
echo Hi > test.qmd
touch _quarto.yml
quarto render test.qmd --to markdown --output-dir /tmp2

RESULT: quarto outputs:

ERROR: Invalid cross-device link (os error 18), rename '/home/castedo/shr/bugs/q2/test.md' -> '/tmp2/test.md'

NOTES:

  1. This works:
quarto render test.qmd --to markdown --output-dir tmp2
  1. So does
echo Hola > /tmp2/hi.txt
cat /tmp2/hi.txt
  1. These steps with a tmpfs are not my actually usage scenario. I hit this because I run quarto inside a container and was outputing into a public_html directory mounted outside the container. Similar issue should get hit with VMs and shared folders.

Easy for me to work around though.

ENVIRONMENT:

[castedo@quarto-1 1]$ quarto --version
1.1.251
[castedo@quarto-1 1]$ cat /etc/os-release
NAME="Fedora Linux"
VERSION="36 (Container Image)"
ID=fedora
VERSION_ID=36
...

Checklist

  • Please include a minimal, fully reproducible example in a single .qmd file? Please provide the whole file rather than the snippet you believe is causing the issue.
  • Please format your issue so it is easier for us to read the bug report.
  • Please document the RStudio IDE version you're running (if applicable), by providing the value displayed in the "About RStudio" main menu dialog?
  • Please document the operating system you're running. If on Linux, please provide the specific distribution.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingfile-systemsissues with NFS, google drive, onedrive, etc

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions