-
Notifications
You must be signed in to change notification settings - Fork 24
Absolute2 #442
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
base: draft
Are you sure you want to change the base?
Conversation
@RagnarGrootKoerkamp I closed the other PR since it was really outdated... this should use absolute where it is ok |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh I guess this is not a stacked diff but a diff containing all the other PRs into draft as well.
anyway lgtm i gues
What was the original reason for preferring absolute paths again exactly? #356 mentions that |
I'm not sure, actually 😅 I think it's difficult to test the implications of this, I don't have a mental list of all the ways how symlinks are used in BAPCtools. Also, we may want to check if log/warn/error messages don't get blown up with full absolute paths now, in cases where shorter relative paths would suffice. Also, I don't think this really belongs to the |
Most error reporting already makes paths relative to elsewhere. Thinking of it, that may be the reason why this is a good change: given two absolute paths it's much more reliable to the relative version from one to the other. After this change, we can probably have a problem directory that's a symlink to another place and it should behave more consistently as if the symlink wasn't there at all? |
I think the only reason why we want to change this is if the problem itself is symlinked somewhere else? Then |
Can we:
|
May be a bit over the top to have a precommit hook, but that stuff is fast anyway so why not 🤷 |
I just think it would be a shame if this decision gets lost/forgotten in the future, when nothing is preventing the use of |
Not sure how to add such a hook... and how to handle those three cases where
|
No description provided.