-
Notifications
You must be signed in to change notification settings - Fork 499
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
Add source information as path of the information #2466
Merged
Merged
Changes from 4 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
516fac5
Add source information as path of the information
psibi 1676f0b
Remove duplicate test
psibi 3593976
Use canonicalize to resolve macos failures
psibi 6fc9e54
Fix remaining failing tests
psibi 493e935
Merge branch 'master' into source-path
psibi 5aefabd
Fix tests
psibi a660717
cargo fmt
psibi 7c2e85a
Update
psibi 9fe7237
Fix tests in Windows
psibi 2b08b04
Remove log statemets
psibi 457af31
Merge branch 'master' into source-path
casey 6fbec2d
new_justfile_path → justfile_path_with_filename
casey 6d7a8b2
Write recursive fix_source function
casey e21a230
Remove Clone
casey 93c9718
Remove lexiclean
casey 8ef0823
Simplify module_file and module_directory
casey File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
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.
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.
Canonicalize produces weird paths. On Unix, it resolves symlinks, which is often not what you want, and on Windows it produces paths prefixed with
\\?\
which is not very nice.Canonicalize is also a system call, which means it can fail with an I/O error, so we can't unwrap here.
If we need to clean the path, we should use
.lexiclean()
instead of canonicalize, which cannot fail and doesn't produce weird paths.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 have pushed a fix, but the tests in MacOS fails because I think of symbolic link. Do you know how to handle it ?
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.
Okay, I have pushed a fix where I have to use
canonicalize
only for the tests to make it pass. Let me know what you think.