-
-
Notifications
You must be signed in to change notification settings - Fork 37
Absolute path support #299
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: main
Are you sure you want to change the base?
Conversation
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 is a great start!
There could also be an integration test with an absolute Rojo sourcemap. You could generate a test setup similar to those in tests/test_cases/sourcemap/*
| node.file_paths.iter().any(|file_path| { | ||
| if file_path.is_absolute() { | ||
| file_path.to_path_buf() | ||
| == path::absolute(target_path).expect("failed to convert") |
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.
I would like to avoid calling path::absolute since this does not work well when darklua runs in-memory. Ideally we'd pre-compute all we need inside the initialize method.
Closes #288
This PR implements support for Rojo sourcemaps emitted with
--absolute