Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add note about tools.build:download_source=True and editable #3448

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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