Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

fix(solc): ensure base-path is not include-path #1596

Merged
merged 1 commit into from
Aug 13, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions ethers-solc/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,10 @@ impl<T: ArtifactOutput> Project<T> {
solc = solc.with_base_path(self.root());
if SUPPORTS_INCLUDE_PATH.matches(&version) {
include_paths.extend(self.include_paths.paths().cloned());
// `--base-path` and `--include-path` conflict if set to the same path, so
// as a precaution, we ensure here that the `--base-path` is not also used
// for `--include-path`
include_paths.remove(self.root());
solc = solc.args(include_paths.args());
}
}
Expand Down