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

Clarify behavior of package() #1304

Merged
merged 1 commit into from
May 31, 2019
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
7 changes: 4 additions & 3 deletions reference/commands/creator/export-pkg.rst
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,10 @@ different sources for the files:

* If the argument ``--package-folder`` is provided, Conan will just copy all the
contents of that folder to the package one in the cache.
* If no ``--package-folder`` is given, Conan will execute the method ``package()``
of the recipe twice: first using the ``source_folder`` and then ``build_folder``
as the working directory.
* If no ``--package-folder`` is given, Conan will execute the method ``package()`` once
and the ``self.copy(...)`` functions will copy matching files from the ``source_folder``
**and** ``build_folder`` to the corresponding path in the Conan cache (working directory
corresponds to the ``build_folder``).


There are different scenarios where this command could look like useful:
Expand Down