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

Fix #6162: failed to build foundry-cheatcodes when enabling feature impls #6163

Closed
wants to merge 1 commit into from

Conversation

jacob-chia
Copy link

Motivation

  • cmd: cargo build --package foundry-cheatcodes --features=impls
  • error:
error[E0433]: failed to resolve: use of undeclared crate or module `foundry_compilers`
 --> crates/cheatcodes/src/impls/config.rs:4:5
  |
4 | use foundry_compilers::{utils::canonicalize, ProjectPathsConfig};
  |     ^^^^^^^^^^^^^^^^^ use of undeclared crate or module `foundry_compilers`

error[E0432]: unresolved import `foundry_compilers`
 --> crates/cheatcodes/src/impls/config.rs:4:5
  |
4 | use foundry_compilers::{utils::canonicalize, ProjectPathsConfig};
  |     ^^^^^^^^^^^^^^^^^ help: a similar path exists: `foundry_config::foundry_compilers`

Some errors have detailed explanations: E0432, E0433.
For more information about an error, try `rustc --explain E0432`.
warning: `foundry-cheatcodes` (lib) generated 1 warning
error: could not compile `foundry-cheatcodes` (lib) due to 2 previous errors; 1 warning emitted

Solution

Add the dependence foundry-compilers in feature impls

Copy link
Member

@mattsse mattsse left a comment

Choose a reason for hiding this comment

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

thanks, this is now obsolete after

#6131

@mattsse mattsse closed this Oct 31, 2023
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