-
Notifications
You must be signed in to change notification settings - Fork 412
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
Dune clean fails on USB stick #2964
Comments
Wait, building on a usb stick??? More seriously, I can't think of what in Dune would cause this behaviour. |
No, that's fixed in master. |
I've seen issues with |
What are the file systems in each cases? It could also be an issue with dune holding on to an open file inside |
In my case, it is |
NTFS also (for the key). |
I did a quick experiment and the log is indeed opened when doing
|
Seems a duplicate of #2921 |
I just checked, the problem only happens on my NTFS key. Should I change title to NTFS filesystem? |
@yannl35133 yeah, that seems to be NTFS related. Regarding the file being kept open, deleting an open file is fine most of the time, but maybe it's not on NTFS. |
In order to be able to delete an open file under Windows, you need to open it using the |
Yeah, we use that flag in a few cases. Maybe we should use it more systematically. In any case, it doesn't seem useful to open the log file in |
Thanks for this. When can we expect this to be included in opam's version? |
…lugin, dune-private-libs and dune-glob (2.1.0) CHANGES: - Attach cinaps stanza actions to both `@runtest` and `@cinaps` aliases (ocaml/dune#2831, @NathanReb) - Add variables `%{lib-private...}` and `%{libexec-private...}` for finding build paths of files in public and private libraries within the same project. (ocaml/dune#2901, @snowleopard) - Add `--mandir` option to `$ dune install`. This option allows to override the installation directory for man pages. (ocaml/dune#2915, fixes ocaml/dune#2670, @rgrinberg) - Fix `dune --version`. The bootstrap didn't compute the version correctly. (ocaml/dune#2929, fixes ocaml/dune#2911, @diml) - Do not open the log file in `dune clean`. (ocaml/dune#2965, fixes ocaml/dune#2964 and ocaml/dune#2921, @diml) - Support passing two arguments to `=`, `<>`, ... operators in package dependencies so that we can have things such as `(<> :os win32)` (ocaml/dune#2965, @diml)
We started the release of Dune 2.1.0, so it should be in opam soon. |
…lugin, dune-private-libs and dune-glob (2.1.0) CHANGES: - Attach cinaps stanza actions to both `@runtest` and `@cinaps` aliases (ocaml/dune#2831, @NathanReb) - Add variables `%{lib-private...}` and `%{libexec-private...}` for finding build paths of files in public and private libraries within the same project. (ocaml/dune#2901, @snowleopard) - Add `--mandir` option to `$ dune install`. This option allows to override the installation directory for man pages. (ocaml/dune#2915, fixes ocaml/dune#2670, @rgrinberg) - Fix `dune --version`. The bootstrap didn't compute the version correctly. (ocaml/dune#2929, fixes ocaml/dune#2911, @diml) - Do not open the log file in `dune clean`. (ocaml/dune#2965, fixes ocaml/dune#2964 and ocaml/dune#2921, @diml) - Support passing two arguments to `=`, `<>`, ... operators in package dependencies so that we can have things such as `(<> :os win32)` (ocaml/dune#2965, @diml)
When I try to run
dune clean
on my project which is located on a USB stick, the call tormdir
is refused asDirectory not empty
.It works perfectly fine if I copy it on the computer.
How to reproduce:
In an empty folder, on the command line
dune build
dune clean
Error: rmdir: _build: Directory not empty
I'm on Kubuntu 19.10,
dune 2.0.0 from opam (BTW, is it normal that
dune --version
echoesn/a
?)The text was updated successfully, but these errors were encountered: