Skip to content

Commit

Permalink
add note about tools.build:download_source=True and editable (#3448)
Browse files Browse the repository at this point in the history
  • Loading branch information
memsharded authored Nov 6, 2023
1 parent 76e9647 commit 6f837b6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions reference/conanfile/methods/source.rst
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ Will compute the dependency graph, then call the ``source()`` method for all "ho

Likewise, it is possible to retrieve the sources for packages in other ``create`` and ``install`` commands, just by passing the configuration. Finally, as also configuration can be defined per-package, using ``-c mypkg*:tools.build:download_source=True`` would only retrieve the sources of packages matching the ``mypkg*`` pattern.

Note that ``tools.build:download_source=True`` will not have any effect on packages in **editable** mode. Downloading sources in that case could easily overwrite and destroy local developer changes over that code. The ``conan source`` command must be used on packages in editable mode to download the sources.


.. note::

Expand Down

0 comments on commit 6f837b6

Please sign in to comment.