-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Open
Labels
T-perfType: performanceType: performance
Description
Component
Forge, Other (please describe)
Have you ensured that all of these are up to date?
- Foundry
- Foundryup
What version of Foundry are you on?
forge 1.0.0-stable (e144b82 2025-02-13T20:02:34.979686000Z)
What version of Foundryup are you on?
N/A
What command(s) is the bug in?
No response
Operating System
macOS (Apple Silicon)
Describe the bug
Remappings are auto detected twice when loading a foundry_config::Config through load_config, in different ways.
- Config::with_root builds a default ProjectPathsConfig which detects remappings
foundry/crates/config/src/lib.rs
Line 1626 in 759b7d6
let paths = ProjectPathsConfig::builder().build_with_root::<()>(root); - Config::to_figment uses RemappingsProvider which has different logic of auto detection
.flat_map(|lib| Remapping::find_many(&lib))
Both are called in load_config through Config::figment_with_root
foundry/crates/config/src/lib.rs
Lines 1598 to 1600 in 759b7d6
| pub fn figment_with_root(root: impl AsRef<Path>) -> Figment { | |
| Self::with_root(root.as_ref()).into() | |
| } |
See samply profile: https://share.firefox.dev/41SgAYV
Metadata
Metadata
Assignees
Labels
T-perfType: performanceType: performance
Type
Projects
Status
Next Up