-
-
Notifications
You must be signed in to change notification settings - Fork 333
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
Changed out path for overridden targets for consistency #1637
Conversation
It would take some refactoring to make the path/segment handling "clean", but I'm fine with removing the assert for now |
The fundamental issue with that assert is that One slightly-less-hacky thing we could do is to add a third case to There are probably other things we could do, but this was the solution I thought of off the top of my head. |
On second thoughts, the |
I'd like to keep the mapping to |
@lefou we actually do generate a string from the I don't think we actually need it to be parseable - in the end it's just for debugging purposes - so I'm happy to merge this PR as is and figure out a way to clean things up later |
To be more consistent with the changes from PR com-lihaoyi#1588 which re-layouted the log, meta, and dest path for targets. This change touches the path of overriden target results. It replaces the `../target/overriden/..` part with `../target.overriden/..`. There is a catch though, to make this work I had to remove one `require` assertion, which guarded the presence of dots (`.`) in labels. TBH, I previously stubled upon this require and also added the FIXME comment to it, as it is unclear why it even exists. Probably, because labels with dots can't be properly parsed when given on cli. More details and hisory can be found in issue com-lihaoyi#820. Fix com-lihaoyi#820. Review by @lihaoyi
b070526
to
28f752a
Compare
To be more consistent with the changes from PR
#1588
which re-layouted the log, meta, and dest path for targets.
This change touches the path of overriden target results.
It replaces the
../target/overriden/..
part with../target.overriden/..
.There is a catch though, to make this work I had to remove one
require
assertion, which guarded the presence of dots (.
) inlabels. TBH, I previously stubled upon this require
and also added the FIXME comment to it, as it is unclear why it
even exists. Probably, because labels with dots can't be properly
parsed when given on cli. More details and hisory can be found in
issue #820.
Fix #820.
Review by @lihaoyi.