trunk icon indicating copy to clipboard operation
trunk copied to clipboard

rel="copy-file" misbehaves if given a symbolic link

Open finnbear opened this issue 1 year ago • 0 comments

When copying a file that is actually a symbolic link, the name becomes that of the file pointed to by the symbolic link, not the original href.

Current behavior:

<link data-trunk rel="copy-file" href="og_image.png"/>
$ ln -s ../assets/branding/512x512.png og_image.png
$ trunk build
2022-09-07T17:50:10.228738Z  INFO copying file path="/home/path/to/project/assets/branding/512x512.png"
$ ls dist
512x512.png

Expected behavior:

$ ls dist
og_image.png

(using trunk 0.15.0)

finnbear avatar Sep 07 '22 17:09 finnbear