From bda5a7657f38cb48939892d82b5d9b3e8da61c4f Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Sun, 14 Aug 2022 01:12:30 +0200 Subject: [PATCH] fix(solc): ensure base-path is not include-path (#1596) --- ethers-solc/src/lib.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ethers-solc/src/lib.rs b/ethers-solc/src/lib.rs index 424c26c7..ffdf3131 100644 --- a/ethers-solc/src/lib.rs +++ b/ethers-solc/src/lib.rs @@ -188,6 +188,10 @@ impl Project { 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()); } }