Abstract
Add a mechanism to disable the default import callback when using the native binary.
Motivation
The native binary defaults to the Host Filesystem Loader, meaning that JSON inputs that are not self-contained can still compile fine. This is a problem for Hardhat because we want to get an error in those cases.
There is a workaround: creating an empty temporary directory and using it with --base-path
. But having a specific flag like --no-import-callback
would be much better.
Specification
Add a --no-import-callback
to the solc binary that disables any default import callback.
Backwards Compatibility
This is a new flag so there shouldn't be backwards compatibility issues.