Skip to content

Commit 0bd1219

Browse files
authored
Mention negation patterns for --deployer-package (#3986)
1 parent 5202739 commit 0bd1219

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

reference/commands/install.rst

+3-1
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,9 @@ It is possible to also invoke the package recipes ``deploy()`` method with the `
148148
# Execute deploy() method only for "pkg" (any version) recipes
149149
$ conan install --requires=pkg/0.1 --deployer-package=pkg/*
150150
151-
The ``--deployer-package`` argument is a pattern and accept multiple values, all package references matching any of the defined patterns will execute its ``deploy()`` method. The ``--deployer-folder`` argument will also affect the output location of this deployment. See the :ref:`deploy() method<reference_conanfile_methods_deploy>`.
151+
The ``--deployer-package`` argument is a pattern and accepts multiple values, all package references matching any of the defined patterns will execute its ``deploy()`` method.
152+
This includes negated patterns, where for example ``--deployer-package=~pkg/*`` will execute the ``deploy()`` method for all packages except for that of the ``pkg`` recipe.
153+
The ``--deployer-folder`` argument will also affect the output location of this deployment. See the :ref:`deploy() method<reference_conanfile_methods_deploy>`.
152154

153155
If multiple deployed packages deploy to the same location, it is their responsibility to not mutually overwrite their binaries if they have the same filenames. For example if multiple packages ``deploy()`` a file called "License.txt", each recipe is responsible for creating an intermediate folder with the package name and/or version that makes it unique, so other recipes ``deploy()`` method do not overwrite previously deployed "License.txt" files.
154156

0 commit comments

Comments
 (0)