-
Notifications
You must be signed in to change notification settings - Fork 453
Move dev-tool lock dirs into hidden folder #12671
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
base: main
Are you sure you want to change the base?
Move dev-tool lock dirs into hidden folder #12671
Conversation
|
You can interpret the statement "move dev-tool lock dirs into hidden folder" in two different ways. Either that the When we discussed this I initially meant the latter case. Doing something like slotting it in _build/ seems sensible. All the issues we have with people complaining about the folder currently will not go away when we make the directory hidden IMO. |
This makes sens to me too! |
|
I'm out of the conversation, but I wonder if dev-tools folder could be inside dune.lock folder? |
|
The issue we have here is that we don't want people committing their developer tool lock files but we don't mind people committing the build locks. If we merge them, then we cause problems for both parties. |
|
Right, I figure it out but maybe up to them? If it's the only issue, can place a .gitignore inside dune-lock? Place it under _build means that any |
It would not, as then Dune will recreate the build plan for dev-tools if it does not exist. This is what it is doing at the moment already if you delete your |
7a2d49f to
4c44f66
Compare
57e78aa to
8cc6508
Compare
8cc6508 to
0e622f0
Compare
|
I believe this is read for another round of reviews :) |
src/dune_rules/utop.ml
Outdated
| Fs_memo.dir_exists (In_source_dir path)) | ||
| lazy | ||
| (let path = Lock_dir.dev_tool_untracked_lock_dir Utop in | ||
| Path.Untracked.exists path) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How would this work in watch mode without Fs_memo?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It won't, but that wasn't the goal here. Fs_memo requires Path.Outside_build_dir which is going to have to be expanded if we are to account for _build/something-that's-not-a-context.
7a26281 to
9e80516
Compare
test/blackbox-tests/test-cases/pkg/ocamlformat/ocamlformat-dev-tool-fails-to-build.t
Outdated
Show resolved
Hide resolved
31fc686 to
7b71f8d
Compare
|
I've pushed a patch which uses fs_memo to scan the lock directories. |
7f8be0c to
bf0edc1
Compare
Signed-off-by: Marek Kubica <[email protected]>
Signed-off-by: Marek Kubica <[email protected]>
Signed-off-by: Marek Kubica <[email protected]>
Signed-off-by: Marek Kubica <[email protected]>
Signed-off-by: Marek Kubica <[email protected]>
Signed-off-by: Marek Kubica <[email protected]>
Signed-off-by: Marek Kubica <[email protected]>
Signed-off-by: Marek Kubica <[email protected]>
Signed-off-by: Marek Kubica <[email protected]>
Signed-off-by: Marek Kubica <[email protected]>
Signed-off-by: Marek Kubica <[email protected]>
Signed-off-by: Marek Kubica <[email protected]>
Signed-off-by: Marek Kubica <[email protected]>
Signed-off-by: Ali Caglayan <[email protected]>
bf0edc1 to
d767790
Compare
|
Somehow the "re-request review" button doesn't do anything, but anyway, I think this PR is ready for re-review. cc @Alizter @rgrinberg |
| Source_tree.find_dir path >>| Option.is_some | ||
| Lock_dir.dev_tool_external_lock_dir Ocamlformat | ||
| |> Path.external_ | ||
| |> Path.Untracked.exists |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any reason why we're still breaking watch mode here? It's not really required to keep it working, but don't see why it's needed to intentionally break it here.
This follows the discussion from the 29th of October where we decided that the dev-tools can (for now) live in a directory that is unlikely to be committed to git.
closes #12097