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

Cargo.lock issues #4

Open
mimoo opened this issue Jun 10, 2021 · 1 comment
Open

Cargo.lock issues #4

mimoo opened this issue Jun 10, 2021 · 1 comment

Comments

@mimoo
Copy link

mimoo commented Jun 10, 2021

With a simple project I get this error:

error: failed to open: /Users/davidwong/Perso/dalek-ocaml/x25519/_build/default/dalek-wrapper/target/release/.cargo-lock

the dune file:

; don't copy target to _build

(dirs :standard \ dalek-wrapper/target dalek-wrapper/Cargo.lock)

; creates the rust library if any rust file changes

(rule
 (target libdalek_wrapper.a)
 (deps
  (source_tree dalek-wrapper))
 (action
  (progn
   (run cargo build --release --manifest-path dalek-wrapper/Cargo.toml)
   (run cp dalek-wrapper/target/release/libdalek_wrapper.a .))))

My guess is that Cargo.lock shouldn't be copied to the _build directory, but my (dirs trick doesn't seem to work.

@mimoo
Copy link
Author

mimoo commented Jun 10, 2021

Actually deleting the target directory fixes the issue, but I'm not sure why it gets copied in the first place since it's in (dirs :standard \

I guess this repo doesn't have this issue because the dune file is within src/

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

1 participant