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

refactor: use relative paths to import from "src" #2

Merged
merged 1 commit into from
Feb 3, 2023
Merged

refactor: use relative paths to import from "src" #2

merged 1 commit into from
Feb 3, 2023

Conversation

PaulRBerg
Copy link
Contributor

@PaulRBerg PaulRBerg commented Feb 2, 2023

Description

Fixes foundry-rs/foundry#3440 for users who need this library.

There really is just one place where src/ is used as an import path, so I think that switching it to ../src and deleting the remappings is well worth it given Foundry's limited capability to handle nested remappings.

Changelog

  • refactor: use relative paths to import from "src"
  • chore: delete "remappings" config option from Foundry config
  • style: format "foundry.toml" with Taplo

chore: delete "remappings" config option from Foundry config
style: format "foundry.toml" with Taplo
@PaulRBerg PaulRBerg changed the title refactor: move remappings to "remappings.txt" refactor: use relative paths to import from "src" Feb 2, 2023
@mds1
Copy link
Owner

mds1 commented Feb 3, 2023

Was there a specific issue you had from the current src/ import that was resolved with ../src, or is this more of a precautionary change?

@PaulRBerg
Copy link
Contributor Author

Yes, I couldn't use the library because of the src/ import. I am now using my fork but I would prefer to stick with the original.

@mds1
Copy link
Owner

mds1 commented Feb 3, 2023

Cool, happy to change if it was causing issues. Thanks!

@mds1 mds1 merged commit 60e485e into mds1:main Feb 3, 2023
@dalechyn
Copy link

dalechyn commented Feb 3, 2023

@PaulRBerg Thanks!

@PaulRBerg
Copy link
Contributor Author

Awesome thanks @mds1.

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.

bug(config): file paths not resolved if submodule specifies root path remappings
3 participants