Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Rewrite relative paths using
dyn.Location
of the underlying value #1273Rewrite relative paths using
dyn.Location
of the underlying value #1273Changes from 17 commits
bb6d266
14384be
6db5797
56d5c90
802629a
366f6f2
1213c22
a7ecc0b
10c81d0
2489bb1
19e74a1
457b749
2b19f9d
7df6f00
9b21ade
dd3a9c0
3027df6
89329f0
2f2bfa4
e89273e
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
This function performs the fallback. If a rewrite with first dir doesn't work, it tries a rewrite with the second dir.
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.
Note: because artifacts use the
translateNoOp
translation (which doesn't check if a path exists), the fallback never kicks in. This is why I didn't include fallback for artifact blocks.We could implement this as long as we check if the directory for the artifact exists, which on its own could cause issues (not sure about the guarantees, though I expect the directory has to exist).