From 409059f010e552cd0c1bbd17cd2ce17e5856b087 Mon Sep 17 00:00:00 2001 From: kenjis Date: Fri, 18 Aug 2023 06:45:50 +0900 Subject: [PATCH] docs: add how to use next minor version branch --- .../installation/installing_composer.rst | 36 ++++++++++++++++--- 1 file changed, 31 insertions(+), 5 deletions(-) diff --git a/user_guide_src/source/installation/installing_composer.rst b/user_guide_src/source/installation/installing_composer.rst index 2b314a196ec1..8305ca9798d2 100644 --- a/user_guide_src/source/installation/installing_composer.rst +++ b/user_guide_src/source/installation/installing_composer.rst @@ -114,6 +114,9 @@ The `development user guide `_ is Note that this differs from the released user guide, and will pertain to the develop branch explicitly. +Update for Latest Dev +^^^^^^^^^^^^^^^^^^^^^ + In your project root: .. code-block:: console @@ -121,16 +124,39 @@ In your project root: php builds development The command above will update **composer.json** to point to the ``develop`` branch of the -working repository, and update the corresponding paths in config and XML files. To revert -these changes run: +working repository, and update the corresponding paths in config and XML files. + +After using the ``builds`` command be sure to run ``composer update`` to sync your vendor +folder with the latest target build. Then, check the :doc:`upgrading` and update project +files if necessary. + +Next Minor Version +^^^^^^^^^^^^^^^^^^ + +If you want to use the next minor version branch, after using the ``builds`` command +edit **composer.json** manually. + +If you try the ``4.4`` branch, change the version to ``4.4.x-dev``:: + + "require": { + "php": "^7.4 || ^8.0", + "codeigniter4/codeigniter4": "4.4.x-dev" + }, + +And run ``composer update`` to sync your vendor +folder with the latest target build. Then, check the Upgrading Guide +(**user_guide_src/source/installation/upgrade_{version}.rst**) and +update project files if necessary. + +Revert to Stable Release +^^^^^^^^^^^^^^^^^^^^^^^^ + +To revert the changes run: .. code-block:: console php builds release -After using the ``builds`` command be sure to run ``composer update`` to sync your vendor -folder with the latest target build. - Adding CodeIgniter4 to an Existing Project ==========================================