CodeIgniter Forums
Is there a sub-version for CI_VERSION, if not why not :) - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28)
+--- Forum: CodeIgniter 4 Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=31)
+--- Thread: Is there a sub-version for CI_VERSION, if not why not :) (/showthread.php?tid=80655)



Is there a sub-version for CI_VERSION, if not why not :) - John_Betong - 11-27-2021

I'm under the impression that GitHub latest version can be downloaded from:
https://github.com/codeigniter4/CodeIgniter4
There are other methods to download the latest version into my mirrored /var/www/ Online path:

Question:
Are all these versions the same and is there a CI_SUB_VERSION

1. Linux Command Line:
git clone https://github.com/codeigniter4/CodeIgniter4.git

Code:
$paths ==> Config\Paths Object
(
    [systemDirectory] => /var/www/CodeIgniter4/app/Config/../../system
    [appDirectory] => /var/www/CodeIgniter4/app/Config/..
    [writableDirectory] => /var/www/CodeIgniter4/app/Config/../../writable
    [testsDirectory] => /var/www/CodeIgniter4/app/Config/../../tests
    [viewDirectory] => /var/www/CodeIgniter4/app/Config/../Views
)

2. Github Zip:
https://github.com/codeigniter4/CodeIgniter4/archive/refs/heads/develop.zip
// not tried

3. Composer:
composer create-project codeigniter4/appstarter /var/www/CodeIgniter4

Code:
$paths ==> Config\Paths Object
(
    [systemDirectory] => /var/www/CodeIgniter4/app/Config/../../vendor/codeigniter4/framework/system
    [appDirectory] => /var/www/CodeIgniter4/app/Config/..
    [writableDirectory] => /var/www/CodeIgniter4/app/Config/../../writable
    [testsDirectory] => /var/www/CodeIgniter4/app/Config/../../tests
    [viewDirectory] => /var/www/CodeIgniter4/app/Config/../Views
)

Edit:
I've just downloaded the GitHub and Composer Versions and noticed the vast change in $paths!!!! 

A lot of my sites are going to break because of the SYSTEM_PATH changes Sad


RE: Is there a sub-version for CI_VERSION, if not why not :) - kenjis - 11-27-2021

1. git clone https://github.com/codeigniter4/CodeIgniter4.git
2. https://github.com/codeigniter4/CodeIgniter4/archive/refs/heads/develop.zip
These are the same code at a moment.
It is developing code base.

3. composer create-project codeigniter4/appstarter /var/www/CodeIgniter4
It is from https://github.com/codeigniter4/framework
codeigniter4/framework is kind of a snapshot from codeigniter4/CodeIgniter4 at the release point.


RE: Is there a sub-version for CI_VERSION, if not why not :) - John_Betong - 11-27-2021

(11-27-2021, 10:25 PM)kenjis Wrote: 1. git clone https://github.com/codeigniter4/CodeIgniter4.git
2. https://github.com/codeigniter4/CodeIgniter4/archive/refs/heads/develop.zip
These are the same code at a moment.
It is developing code base.

3. composer create-project codeigniter4/appstarter /var/www/CodeIgniter4
It is from https://github.com/codeigniter4/framework
codeigniter4/framework is kind of a snapshot from codeigniter4/CodeIgniter4 at the release point.

So no CI_SUBVERSION Sad

(11-27-2021, 10:46 PM)John_Betong Wrote:
(11-27-2021, 10:25 PM)kenjis Wrote: 1. git clone https://github.com/codeigniter4/CodeIgniter4.git
2. https://github.com/codeigniter4/CodeIgniter4/archive/refs/heads/develop.zip
These are the same code at a moment.
It is developing code base.

3. composer create-project codeigniter4/appstarter /var/www/CodeIgniter4
It is from https://github.com/codeigniter4/framework
codeigniter4/framework is kind of a snapshot from codeigniter4/CodeIgniter4 at the release point.

So no CI_SUBVERSION Sad

I noticed there is an eighteen day upload difference between the two versions!



RE: Is there a sub-version for CI_VERSION, if not why not :) - kenjis - 11-27-2021

There is no CI_SUB_VERSION. CI_VERSION is updated only when releasing.

What do you want to know if CI_SUB_VERSION exists?

If you use git, git commit hash is a version.
It is 0dbdc1ac44b667f7bce97bdd17be2a941fd68b8a now.
https://github.com/codeigniter4/CodeIgniter4/commit/0dbdc1ac44b667f7bce97bdd17be2a941fd68b8a


RE: Is there a sub-version for CI_VERSION, if not why not :) - John_Betong - 11-28-2021

@kenjis,
> What do you want to know if CI_SUB_VERSION exists?

I recently reported a CI4 Bug but it could not be replicated because the tester used the Composer Version which differs from the the GitHub version.

Edit:
The GitHub commit hash is meaningless and I would prefer a trailing date:

CI_VERSION = 4.1.5-2021-11-28


RE: Is there a sub-version for CI_VERSION, if not why not :) - kenjis - 11-28-2021

Basically, I use the latest develop branch in codeigniter4/CodeIgniter4 repository.
It is the latest development code. If a bug can't be reproduced on it, it is probably fixed already.

When you report a bug, if you use codeigniter4/CodeIgniter4 repository,
the commit hash is most accurate version. If you show it, we can know
the date and time.

`4.1.5-2021-11-28` is a bit confusing. Because there is only one 4.1.5 code base.
If one commit is added to it, it is not 4.1.5.
`develop 2021-11-28` or just `develop` is better.


RE: Is there a sub-version for CI_VERSION, if not why not :) - InsiteFX - 11-28-2021

Like @kenjis I also always use the develop brach of the framework.


I check the commit date and time to know if I should update my version.

But a sub-version date would be nice.