installing-solidity.rst: Clarify that when using urls in Standard JSON with a dockerized compiler it might still be necessary to mount a volume

This commit is contained in:
Kamil Śliwak 2021-06-24 19:14:38 +02:00
parent cbf1c3ae69
commit cd0ccd099b
2 changed files with 5 additions and 1 deletions

View File

@ -86,7 +86,9 @@ local folder for input and output, and specify the contract to compile. For exam
docker run -v /local/path:/sources ethereum/solc:stable -o /sources/output --abi --bin /sources/Contract.sol
You can also use the standard JSON interface (which is recommended when using the compiler with tooling).
When using this interface it is not necessary to mount any directories.
When using this interface it is not necessary to mount any directories as long as the JSON input is
self-contained (i.e. it does not refer to any external files that would have to be
:ref:`loaded by the import callback <initial-vfs-content-standard-json-with-import-callback>`).
.. code-block:: bash

View File

@ -104,6 +104,8 @@ The initial content of the VFS depends on how you invoke the compiler:
The ``sources`` dictionary becomes the initial content of the virtual filesystem and its keys
are used as source unit names.
.. _initial-vfs-content-standard-json-with-import-callback:
#. **Standard JSON (via import callback)**
With Standard JSON it is also possible to tell the compiler to use the import callback to obtain