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

This commit is contained in:
Matthias Seitz 2022-08-14 01:12:30 +02:00 committed by GitHub
parent ad256997d6
commit bda5a7657f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -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());
}
}