Skip to content

Commit cfd8898

Browse files
authored
Merge pull request #7838 from kenjis/docs-latest-dev
docs: add how to use next minor version branch
2 parents 700f6e4 + 409059f commit cfd8898

File tree

1 file changed

+31
-5
lines changed

1 file changed

+31
-5
lines changed

user_guide_src/source/installation/installing_composer.rst

Lines changed: 31 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -114,23 +114,49 @@ The `development user guide <https://codeigniter4.github.io/CodeIgniter4/>`_ is
114114
Note that this differs from the released user guide, and will pertain to the
115115
develop branch explicitly.
116116

117+
Update for Latest Dev
118+
^^^^^^^^^^^^^^^^^^^^^
119+
117120
In your project root:
118121

119122
.. code-block:: console
120123
121124
php builds development
122125
123126
The command above will update **composer.json** to point to the ``develop`` branch of the
124-
working repository, and update the corresponding paths in config and XML files. To revert
125-
these changes run:
127+
working repository, and update the corresponding paths in config and XML files.
128+
129+
After using the ``builds`` command be sure to run ``composer update`` to sync your vendor
130+
folder with the latest target build. Then, check the :doc:`upgrading` and update project
131+
files if necessary.
132+
133+
Next Minor Version
134+
^^^^^^^^^^^^^^^^^^
135+
136+
If you want to use the next minor version branch, after using the ``builds`` command
137+
edit **composer.json** manually.
138+
139+
If you try the ``4.4`` branch, change the version to ``4.4.x-dev``::
140+
141+
"require": {
142+
"php": "^7.4 || ^8.0",
143+
"codeigniter4/codeigniter4": "4.4.x-dev"
144+
},
145+
146+
And run ``composer update`` to sync your vendor
147+
folder with the latest target build. Then, check the Upgrading Guide
148+
(**user_guide_src/source/installation/upgrade_{version}.rst**) and
149+
update project files if necessary.
150+
151+
Revert to Stable Release
152+
^^^^^^^^^^^^^^^^^^^^^^^^
153+
154+
To revert the changes run:
126155

127156
.. code-block:: console
128157
129158
php builds release
130159
131-
After using the ``builds`` command be sure to run ``composer update`` to sync your vendor
132-
folder with the latest target build.
133-
134160
Adding CodeIgniter4 to an Existing Project
135161
==========================================
136162

0 commit comments

Comments
 (0)