Skip to content

Stop the installation process via .install file from creating unnecessary intermediate directories for paths that contain '..' - #7015

Merged
kit-ty-kate merged 2 commits into
ocaml:masterfrom
kit-ty-kate:no-install-intermediate-dir
Jul 17, 2026
Merged

Stop the installation process via .install file from creating unnecessary intermediate directories for paths that contain '..'#7015
kit-ty-kate merged 2 commits into
ocaml:masterfrom
kit-ty-kate:no-install-intermediate-dir

Conversation

@kit-ty-kate

@kit-ty-kate kit-ty-kate commented Jul 8, 2026

Copy link
Copy Markdown
Member

Detected in #7008

Target paths are now resolve before their creation & install.

Backported to 2.5 in #7009
It is queued on #7008 (reintroduce '..') to be able to see the changes in tests, but #7008 can't be merged without this PR. So #7008 contains the update of the test added here

@kit-ty-kate kit-ty-kate added this to the 2.6.0~alpha1 milestone Jul 8, 2026
@kit-ty-kate
kit-ty-kate force-pushed the no-install-intermediate-dir branch from 6b862b5 to 07cde75 Compare July 14, 2026 19:18

@rjbou rjbou left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The added test (from #7008) doesn't highlight the changes. I've updated the main comment to add the queued information

@rjbou rjbou added the PR: QUEUED Pending pull request, waiting for other work to be merged or closed label Jul 15, 2026

@rjbou rjbou left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same, the main comment and main commit (last one) doesn't contains the explanation of what was done to no longer create intermediate dirs during the installation process from .install.

@kit-ty-kate kit-ty-kate mentioned this pull request Jul 17, 2026
1 task
…sary intermediate directories for paths that contain '..'

The target path is now resolved before creation
@rjbou
rjbou force-pushed the no-install-intermediate-dir branch from 07cde75 to eb8bbda Compare July 17, 2026 17:53

@rjbou rjbou left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated commit msg & main comment

@rjbou rjbou added STATE: READY TO MERGE and removed PR: QUEUED Pending pull request, waiting for other work to be merged or closed labels Jul 17, 2026
@kit-ty-kate

Copy link
Copy Markdown
Member Author

Ignoring the missing macOS runs. Seems like GitHub have nuked their macOS machines out of existence

@kit-ty-kate
kit-ty-kate merged commit caddcd6 into ocaml:master Jul 17, 2026
41 checks passed
@kit-ty-kate
kit-ty-kate deleted the no-install-intermediate-dir branch July 17, 2026 19:11
@kit-ty-kate

Copy link
Copy Markdown
Member Author

The effect of the change can be seen in #7008

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

Successfully merging this pull request may close these issues.

2 participants