trunk icon indicating copy to clipboard operation
trunk copied to clipboard

errors: copy-dir symlink to directory and copy-file symlink to directory

Open nalply opened this issue 11 months ago • 2 comments
trafficstars

I have a <link data-trunk rel=copy-dir href=symlink> in my index.html. However this doesn't build, error message:

2024-11-29T15:38:21.215479Z ERROR ❌ error
error from build pipeline

Caused by:
    0: HTML build pipeline failed (1 errors), showing first
    1: error from asset pipeline
    2: the source path is neither a regular file nor a symlink to a regular file

When removing that asset, it builds fine, however I need that directory. When I copy the whole directory in a pre-build step or copy the symlink manually, it works, but it will be deleted the next time trunk builds.

rel=copy-file also fails, but differently:

2024-11-29T15:39:54.667304Z ERROR ❌ error
error from build pipeline

Caused by:
    0: HTML build pipeline failed (1 errors), showing first
    1: error from asset pipeline
    2: error reading file for copying "/home/nalp/Projects/some-project/symlink-target"
    3: Is a directory (os error 21)

I think both should work, the first one copies the directory the symlink points to, the other one copies the symlink itself.

nalply avatar Nov 29 '24 15:11 nalply

Which version of trunk are you using?

ctron avatar Nov 29 '24 15:11 ctron

0.21.4

nalply avatar Nov 29 '24 16:11 nalply