Welcome Guest, Not a member yet? Register   Sign In
composer didn't update to 4.5.0
#1
Question 
(This post was last modified: 04-11-2024, 07:48 AM by oldbutactive.)

Greetings - 
Composer update on my CloudLinux server  updated 4.4.5 -> 4.4.8 and NOT to 4.5.0
- I have php 8.1 with intl and mbstring.  Other prerequisites are fine too. 
- using composer 2.6.5
- It worked yesterday on the same server under a different account with the same settings.
- I had already updated index.php to use the new boot routine, but had to fall back.
Any suggestions anyone?
Thanks for maintaining CodeIgniter everyone!

Solved:  composer.json had "^4.4" in the require section for codeigniter.  Changed to "^4" and all is good.  Thanks everyone!
Reply
#2

Check "codeigniter4/framework" version in your composer.json.
Reply
#3

Compare your project composer.json file with the default 4.5.0 one at https://github.com/codeigniter4/CodeIgni...poser.json
I had to 
  • increase the minimum versions of several of the packages, and
  • remove the php-coveralls/php-coveralls package (which is used in 4.4.x but not in 4.5.0)
...before composer would update CodeIgniter to 4.5.0
Reply
#4

(This post was last modified: 04-10-2024, 05:13 AM by kenjis.)

See composer.json in appstarter repository if you installed appstarter:
https://github.com/codeigniter4/appstart...poser.json

However, there does not appear to be any particular item that needs to be changed.

After all, composer.json in your project is completely yours.
You can change anything you want.
Reply
#5

I think problem with this line in shield\composer.json

Code:
"codeigniter4/framework": ">=4.3.5 <4.5.0 || ^4.5.1",


this is line in my composer.json

Code:
"codeigniter4/framework": "^4.0",

and i can't update to 4.5.1. If i fix this to
Code:
"codeigniter4/framework": "^4.5",
everything will be ok
Reply




Theme © iAndrew 2016 - Forum software by © MyBB