mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
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:
parent
cbf1c3ae69
commit
cd0ccd099b
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user