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

test: add test for absolute imports from test and script #3443

Merged

Conversation

mattsse
Copy link
Member

@mattsse mattsse commented Oct 3, 2022

Motivation

Ref #3440

@mds1 do you have an example where this currently fails? Because this test passes

Solution

@mattsse mattsse added the L-ignore Log: ignore PR in changelog label Oct 3, 2022
@mds1
Copy link
Collaborator

mds1 commented Oct 3, 2022

Reproduction case here, more info in that README: https://github.com/mds1/forge-test-my-proj

I'm going to update #3440 to clarify the issue

@mattsse
Copy link
Member Author

mattsse commented Oct 4, 2022

I see, so the problem seems to that remappings take precedence over absolute imports so if an import path starts with test/ then the corresponding remapping is used.

since this happens in a dependency this is actually this issue #1855

@mattsse
Copy link
Member Author

mattsse commented Oct 5, 2022

merging this as is and keep the issue opne

@mattsse mattsse merged commit f19fd81 into foundry-rs:master Oct 5, 2022
iFrostizz pushed a commit to iFrostizz/foundry that referenced this pull request Nov 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
L-ignore Log: ignore PR in changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants