You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cookbook/workflow/vendor_deps.rst
+5-14Lines changed: 5 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -66,29 +66,20 @@ or upgraded. You can set that directly to the ``deps`` file :
66
66
version=the-awesome-version
67
67
68
68
69
-
* The ``git`` option sets the URL of the library. It can use various protocols,
70
-
like ``http://`` as well as ``git://``.
69
+
* The ``git`` option sets the URL of the library. It can use various protocols, like ``http://`` as well as ``git://``.
71
70
72
-
* The ``target`` option specifies where the repository will live : plain Symfony
73
-
bundles should go under the ``vendor/bundles/Acme`` directory, other third-party
74
-
libraries usually go to ``vendor/my-awesome-libreary-name``. The target directory
75
-
defaults to this last option when not specified.
71
+
* The ``target`` option specifies where the repository will live : plain Symfony bundles should go under the ``vendor/bundles/Acme`` directory, other third-party libraries usually go to ``vendor/my-awesome-libreary-name``. The target directory defaults to this last option when not specified.
76
72
77
-
* The ``version`` option allows you to set a specific revision. You can use a tag
78
-
(``version=origin/0.42``) or a branch name (``refs/remotes/origin/awesome-branch``).
79
-
It defaults to ``origin/HEAD``.
73
+
* The ``version`` option allows you to set a specific revision. You can use a tag (``version=origin/0.42``) or a branch name (``refs/remotes/origin/awesome-branch``). It defaults to ``origin/HEAD``.
80
74
81
75
82
76
Updating workflow
83
77
-----------------
84
78
85
-
When you execute the ``php bin/vendors install``, for every library, the script
86
-
first checks if the install directory exists.
79
+
When you execute the ``php bin/vendors install``, for every library, the script first checks if the install directory exists.
87
80
88
81
If it does not (and ONLY if it does not, it runs a ``git clone``.
89
82
90
83
Then, it does a ``git fetch origin`` and a ``git reset --hard the-awesome-version``.
91
84
92
-
This means that the repository will only be cloned once. If you want to perform
93
-
any change of the git remote, you MUST delete the entire target directory, not
94
-
only its content.
85
+
This means that the repository will only be cloned once. If you want to perform any change of the git remote, you MUST delete the entire target directory, not only its content.
0 commit comments