Skip to content

Commit c113997

Browse files
danimtbjgsogo
andauthored
Rewrite of the SCM optimization tip box (conan-io#1307)
* Rewrite of the SCM optimization tip box * review * Update creating_packages/package_repo.rst Co-Authored-By: Javier G. Sogo <jgsogo@gmail.com>
1 parent b520c00 commit c113997

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

creating_packages/package_repo.rst

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,11 @@ be valid too:
172172
173173
.. tip::
174174

175-
While you are in the same computer (the same Conan cache), even when you have exported the recipe and
176-
Conan has captured the absolute url and commit, Conan will store the local folder where your source code lives.
177-
If you build your package locally, it will use the local repository (in the local folder) instead of the remote URL,
178-
even if the local directory contains uncommitted changes.
179-
This allows you to speed up the development of your packages when cloning from a local repository.
175+
When doing a :command:`conan create` of a recipe using ``scm``, Conan will save the path to the local source repository. Every time the
176+
:command:`conan create` command is invoked, the sources will not be downloaded from the remote repository but copied from the local directory.
177+
178+
This allows to build packages making changes to the source code without the need of committing them and pushing them to the remote
179+
repository. This convenient to speed up the development of your packages when cloning from a local repository.
180+
181+
**Warning:** This optimization can lead to non-reproducible packages if changes in the source code are not committed and the recipe is
182+
uploaded with its packages to a remote.

0 commit comments

Comments
 (0)