Skip to content

[2.5] When doing opam sw create ... --dry-run, avoid creating of the directories#6540

Merged
kit-ty-kate merged 2 commits intoocaml:2.5from
hannesm:switch-create-dry-run
Nov 10, 2025
Merged

[2.5] When doing opam sw create ... --dry-run, avoid creating of the directories#6540
kit-ty-kate merged 2 commits intoocaml:2.5from
hannesm:switch-create-dry-run

Conversation

@hannesm
Copy link
Copy Markdown
Member

@hannesm hannesm commented Jun 10, 2025

This is fixing #5918
@rjbou edit: this is done by no longer creating build directory and switch-state cache storing in dry run mode. It also contains not removing build dir in switch state mode.

There may be other (sub)commands that create/remove directories... I haven't had the patience to go through all of them, but the one reported in #5918 is solved by this PR for me.

Backported to the 2.5 branch in #6785

kit-ty-kate and others added 2 commits November 10, 2025 13:08
…ories

This is fixing ocaml#5918
This is achieved by, in dry run, no longer creating build directory, nor saving switch state cache.
It also contains not removing of build dir in dry run mode.
@rjbou rjbou force-pushed the switch-create-dry-run branch from be85291 to ad42ada Compare November 10, 2025 12:08
@kit-ty-kate kit-ty-kate modified the milestones: 2.6.0~alpha1, 2.5.0~beta1 Nov 10, 2025
@rjbou rjbou changed the title When doing opam sw create ... --dry-run, avoid creating of the directories [2.5] When doing opam sw create ... --dry-run, avoid creating of the directories Nov 10, 2025
@kit-ty-kate kit-ty-kate merged commit 5dae3c8 into ocaml:2.5 Nov 10, 2025
45 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants