Remove unnecessary use of chdir#6910
Conversation
kit-ty-kate
left a comment
There was a problem hiding this comment.
The tests need to be adapted to the new API (tests/lib/patcher uses chdir)
3772c88 to
3855290
Compare
|
The test failures seem to all come from This could make us reconsider the removal of the I could simply reintroduce them now that we know they're not used internally anymore but I assume the goal is to discourage their use entirely in opam so removing them feels right. Let me know what you'd prefer here. I wonder if we could use some neat trick to deprecate them internally without the warning hitting external users, this would make for a good in between. Edit: I forgot to hit |
done in ocaml-opam/opam-rt#89 |
|
Any idea what's wrong with this build in particular: https://github.com/ocaml/opam/actions/runs/25102824494/job/73556728915?pr=6910 The error: |
|
Ah just got it, the regexp matched on the generated directory name! I'll see if I can make the regexp more robust! |
|
Maybe that should in fact be fixed at the reftest-runner level though, it seems the regexp was applied before the path normalization, I doubt there is any concrete case where we want that. Let me know what you'd prefer! |
|
I went for the former. A bit of testing showed that the changes in the reftest runner would be a bit more involved than I anticipated as in some tests at least, |
0d30ecc to
bdd18eb
Compare
|
rebased on top of #6922 to show the impact on the |
ff34cee to
2bd16e7
Compare
|
Is anything still blocking this? |
rjbou
left a comment
There was a problem hiding this comment.
Tiny comments, otherwise, lgtm!
Signed-off-by: Nathan Rebours <nathan.rebours@ocamlpro.com>
Signed-off-by: Nathan Rebours <nathan.rebours@ocamlpro.com>
With the new `git -C` commands showing, the regexp could potentially match on the path passed to the `-C` option. Signed-off-by: Nathan Rebours <nathan.rebours@ocamlpro.com>
|
Thanks! |
Get rid of chdir (ocaml/opam#6910)
Get rid of chdir (ocaml/opam#6910)
This ports the
chdirremoval from #5966 as asked for in #6600.