-
Notifications
You must be signed in to change notification settings - Fork 409
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
Package management fails to read files when lock directory is ignored #11114
Comments
This is the same error message as in #10903, however it looks like a different issue. |
The error is actually that the project ignores Repro in #11115. Two options exist (discussed in todays dune-dev meeting):
The first option has the issue that the lock directories are defined in the |
dune pkg lock
fails at installing ocamlfind
I think ignoring the |
The issue is that if I have a We can make the error message when it fails, but it seems fragile if the same project works on one setup and fails on another. |
If there's a workspace file, I think it should be considered part of the setup. There's a bunch of other settings one can write in the workspace file that might break things if the workspace is omitted. I'm not strongly against making the source tree special case the lock directory, but it doesn't seem like an elegant solution either. I'd start with a good error message and if it proves to be insufficient, we could always revisit. |
Expected Behavior
dune build
properly installsocamlfind
and proceeds with building the package.Actual Behavior
Same error on my host machine (Gentoo) and docker Alpine or Ubuntu images :
Reproduction
Reproduction Dockerfile:
Specifications
dune
(output ofdune --version
): 3.16.0ocaml
(output ofocamlc --version
): 5.2.0The text was updated successfully, but these errors were encountered: