You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By the way, perhaps it would make sense to allow glob patterns inside install stanzas first? That might be enough for your use case.
It's exactly what I would have needed right now!
My use-case is that my project embeds a webserver with a bunch of static files static/{img/*.png,css/*.css,js/*.js}. I'd like so install all these files without having to list each of them, and preserve the directory structure.
EDIT:
btw the example in the first message fails with Dune 3.0 with:
8 | (install (package p) (section lib) (files foo))
^^^
Error: Error trying to read targets after a rule was run:
- default/lib/p/foo: Unexpected file kind "S_DIR" (directory)
Activity
voodoos commentedon Oct 13, 2020
@rgrinberg, what are your thoughts on this issue ?
I understood that it would be a useful fix for the Mirage team and I would like your feedback before diving-in.
It looks like it would be easy to fix that issue when the directory is just a static directory (and not a target).
rgrinberg commentedon Oct 13, 2020
It would be a good feature to have. How do you plan on expressing a dependency on a target directory though?
By the way, perhaps it would make sense to allow glob patterns inside install stanzas first? That might be enough for your use case.
MisterDA commentedon Apr 13, 2022
It's exactly what I would have needed right now!
My use-case is that my project embeds a webserver with a bunch of static files
static/{img/*.png,css/*.css,js/*.js}. I'd like so install all these files without having to list each of them, and preserve the directory structure.EDIT:
btw the example in the first message fails with Dune 3.0 with: