Skip to content
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

feat: more info when module is outside of the root #557

Merged
merged 3 commits into from
Jul 3, 2024
Merged

Conversation

bajtos
Copy link
Member

@bajtos bajtos commented Jul 3, 2024

Let's try to get more visibility into the following issue:

Signed-off-by: Miroslav Bajtoš <oss@bajtos.net>
@bajtos bajtos requested a review from juliangruber July 3, 2024 14:50
bajtos added 2 commits July 3, 2024 16:51
Signed-off-by: Miroslav Bajtoš <oss@bajtos.net>
Signed-off-by: Miroslav Bajtoš <oss@bajtos.net>
@bajtos bajtos changed the title fix: more info when module is outside of the root feat: more info when module is outside of the root Jul 3, 2024
Copy link
Member

@juliangruber juliangruber left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great to get closer to an answer here 💪

@bajtos bajtos merged commit 31c0292 into main Jul 3, 2024
13 checks passed
@bajtos bajtos deleted the fix-windows-imports branch July 3, 2024 15:10
bajtos added a commit that referenced this pull request Jul 8, 2024
In 31c0292 (#557), I improved the error message printed when the
module is outside of the root dir to include the file path of the
imported module. That's not enough to troubleshoot the problem,
because we print the non-canonical path, which is potentially different
from the string we use to check if the module path is within the root
dir.

In this commit, I refactored the method to make the code easier to
follow, and improved the error message to print the canonicalized
paths of the module and the root dir.

Signed-off-by: Miroslav Bajtoš <oss@bajtos.net>
bajtos added a commit that referenced this pull request Jul 8, 2024
In 31c0292 (#557), I improved the error message printed when the
module is outside of the root dir to include the file path of the
imported module. That's not enough to troubleshoot the problem,
because we print the non-canonical path, which is potentially different
from the string we use to check if the module path is within the root
dir.

In this commit, I refactored the method to make the code easier to
follow, and improved the error message to print the canonicalized
paths of the module and the root dir.

Signed-off-by: Miroslav Bajtoš <oss@bajtos.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants