Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
nalply opened this issue Nov 29, 2024 · 2 comments
Open

Comments

@nalply
Copy link

nalply commented Nov 29, 2024

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.

@ctron
Copy link
Collaborator

ctron commented Nov 29, 2024

Which version of trunk are you using?

@nalply
Copy link
Author

nalply commented Nov 29, 2024

0.21.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants