-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
fix #13222: make relativePath more robust and flexible #13451
fix #13222: make relativePath more robust and flexible #13451
Conversation
Oh no. I don't want to expose |
removed it to unblock this PR; I understand the concern and this could be addressed similarly to
for users who understand that and still need the feature, but I've left this out of this PR to unblock it |
a854c9f
to
ceda7d7
Compare
PTAL:
|
We talked about adding I think you have to concede that if this isn't provided, a work-around will be developed, and that's clearly a worse option. Can you really champion NimScript as the right tool for writing build scripts when one cannot even find the current working directory in NimScript? |
|
This patch that is really hard to review. Can't you achieve the same without rewriting the code? |
I agree it's hard to review but it's due to github diff view not dealing well with blocks of code being re-indented, I did not rewrite the code. I know 2 options: hidden github feature: ?w=1I've just found a really interesting solution: adding caveat: this solution is a bit blunt, see caveats here: timotheecour#37 git diff --color-moved-ws=allow-indentation-change --color-moved=blocksThis is the hint I added to https://nim-lang.github.io/Nim/contributing.html which helps if you locally fetch the PR, it helps by coloring differently code that was moved. |
f96c846
to
676e430
Compare
PTAL (you can just review last 2 commits) |
You missed to update tests/js/tos.nim |
676e430
to
2c54fa8
Compare
done, PTAL (and see comments above) |
Gah, I screwed up the changelog cleanup... |
* relativePath(rel, abs) and relativePath(abs, rel) now work (fixes nim-lang#13222) * relativePath, absolutePath, getCurrentDir now available in more targets (eg: vm, nodejs etc)
271483c
to
569d8b7
Compare
TLDR: we should rebase, not merge I've rebased (instead of merged) to keep git history linear. Merge makes it really hard to understand individual commits as they get mixed with unrelated changes (even if this is squashed + merged in github UI, the individual commits of PR can still be seen in github UI, and are useful to follow the PR.
this is now possible since #13813 via |
vm, nodejs etc)isAbsolute
now works with -d:js (previously was always returning false)see tests