-
Notifications
You must be signed in to change notification settings - Fork 470
Directory targets that contain symlinks #5945
Copy link
Copy link
Closed
Milestone
Description
Expected Behavior
If a rule make a directory, and that directory happens to be populated with symbolic links, I expect the symlinks to be present in the compiled tree.
Actual Behavior
Dune stops processing rules and issues this error:
Error: Rule produced a file with unrecognised kind "S_LNK"
Reproduction
E.g. I am using a rule to make node_modules by running npm install.
My rule is this:
(rule
(targets (dir node_modules))
(deps
(sandbox always)
package.json
package-lock.json)
(action
(progn
(run chmod +w package-lock.json)
(run npm install))))
(an unrelated wrinkle is that NPM requires write access to package-lock.json, but that's NPM's problem IMHO)
- PR with a reproducing test:
- Make a directory that contains a
package.jsonfile, e.g. this one. - Add a
dunefile with the rule above (remove the references topackage-lock.jsonif you don't want to have one). - Run
dune build.
Specifications
- Version of
dune(output ofdune --version): 3.3.1 - Version of
ocaml(output ofocamlc --version): 4.12.0 - Operating system (distribution and version): macOS Monterey 12.4
Additional information
- Link to gist with verbose output (run
dunewith the--verboseflag):
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels