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

Issue1270 - fixing relative symlinks with (inappropriate) ../../ in them... #1272

Merged
merged 3 commits into from
Oct 25, 2024

Conversation

petersilva
Copy link
Contributor

@petersilva petersilva commented Oct 23, 2024

close #1270

removed special relative translation that turns out to have been wrong-headed.
requires/works best with: MetPX/sarrac#168

with the two fixes, renames and symlinks should be a lot better.

working on #1270.

The relative path conversion is actually different for rename vs. link.
the rename needs to take into account where in the tree it is,
but the link is always from the destination directory (where the link
is.)  So the processing of 'link' and 'rename' is actually different.

I need more testing, I think link is correct now.
It looks like sarrac #169 was being mostly hidden/corrected by
inexplicable logic here. Once #169 is corrected, the strange
adjustments to the relative path can be removed.
Copy link

github-actions bot commented Oct 23, 2024

Test Results

238 tests   237 ✅  1m 29s ⏱️
  1 suites    1 💤
  1 files      0 ❌

Results for commit 5b7179a.

♻️ This comment has been updated with latest results.

@petersilva petersilva marked this pull request as ready for review October 23, 2024 08:47
@petersilva petersilva changed the title Issue1270 Issue1270 - fixing relative symlinks with (inappropriate) ../../ in them... Oct 23, 2024
Copy link
Member

@reidsunderland reidsunderland left a comment

Choose a reason for hiding this comment

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

reviewed in a call with @petersilva and @andreleblanc11

@petersilva petersilva merged commit 7bea2c0 into development Oct 25, 2024
177 of 224 checks passed
@petersilva petersilva deleted the issue1270 branch November 26, 2024 04:19
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.

mirrorring relative symlinks with ../.. in them which are wrong...
2 participants