Skip to content
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

Unix.realpath: move compatibility layer into OpamCompat #5152

Merged
merged 2 commits into from
May 25, 2022

Conversation

rjbou
Copy link
Collaborator

@rjbou rjbou commented May 25, 2022

Add OpamCompat.Unix.normalise that is realpath of OCaml >= 4.13, internal implementation with double chdir trick otherwise.
cf. #4961

@rjbou rjbou added this to the 2.2.0~alpha milestone May 25, 2022
@rjbou rjbou requested a review from dra27 May 25, 2022 09:18
@rjbou rjbou added this to PR in progress in Opam 2.2.0 via automation May 25, 2022
let getchdir s =
let p =
try Sys.getcwd ()
with Sys_error _ -> Filename.get_temp_dir_name ()
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

log dir was used, it is replaced by temp dir

Copy link
Member

@dra27 dra27 left a comment

Choose a reason for hiding this comment

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

LGTM - of course, some time soon (hopefully!) we can wind forward to 4.13/4.14 🙂

@rjbou rjbou moved this from PR in progress to PR finalised (merge with CI) in Opam 2.2.0 May 25, 2022
@rjbou rjbou merged commit 0907596 into ocaml:master May 25, 2022
Opam 2.2.0 automation moved this from PR finalised (merge with CI) to Done May 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Opam 2.2.0
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants