Welcome Guest, Not a member yet? Register   Sign In
Is there a sub-version for CI_VERSION, if not why not :)
#1

(This post was last modified: 11-27-2021, 07:48 PM by John_Betong. Edit Reason: Updates SYSTEM_PATH )

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/CodeIgni...evelop.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
Reply
#2

1. git clone https://github.com/codeigniter4/CodeIgniter4.git
2. https://github.com/codeigniter4/CodeIgni...evelop.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.
Reply
#3

(This post was last modified: 11-27-2021, 10:47 PM by John_Betong.)

(11-27-2021, 10:25 PM)kenjis Wrote: 1. git clone https://github.com/codeigniter4/CodeIgniter4.git
2. https://github.com/codeigniter4/CodeIgni...evelop.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/CodeIgni...evelop.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!
Reply
#4

(This post was last modified: 11-27-2021, 10:57 PM by kenjis.)

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/CodeIgni...941fd68b8a
Reply
#5

(This post was last modified: 11-28-2021, 12:16 AM by John_Betong.)

@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
Reply
#6

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.
Reply
#7

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.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply




Theme © iAndrew 2016 - Forum software by © MyBB