CodeIgniter Forums
[SOLVED] Only Update CI4 by Composer - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28)
+--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30)
+--- Thread: [SOLVED] Only Update CI4 by Composer (/showthread.php?tid=77665)



[SOLVED] Only Update CI4 by Composer - nc03061981 - 10-01-2020

My CI4 app have 2 packages: CI4 and Myth/Auth
I want update --> Only CI4 <-- (composer update --no-dev)

How I do it

Here my composer.json
Code:
{
"name": "codeigniter4/appstarter",
"type": "project",
"description": "CodeIgniter4 starter app",
"homepage": "https://codeigniter.com",
"license": "MIT",
"minimum-stability": "dev",
"prefer-stable": true,
"require": {
"php": ">=7.2",
"codeigniter4/framework": "^4",
"myth/auth": "^1.0@beta"
},
"require-dev": {
"fzaninotto/faker": "^1.9@dev",
"mikey179/vfsstream": "1.6.*",
"phpunit/phpunit": "^8.5"
},
"autoload-dev": {
"psr-4": {
"Tests\\Support\\": "tests/_support"
}
},
"scripts": {
"post-update-cmd": [
"@composer dump-autoload"
],
"test": "phpunit"
},
"support": {
"forum": "http://forum.codeigniter.com/",
"source": "https://github.com/codeigniter4/CodeIgniter4",
"slack": "https://codeigniterchat.slack.com"
}
}

Is it just delete "myth/auth":"^1.0@beta" ?


RE: Only Update CI4 by Composer - captain-sensible - 10-01-2020

you can try :

$ php composer.phar update codeigniter4/framework --no-dev


// im on linux and have made a link so all i have to use is "composer"

bash-5.0$ composer update codeigniter4/framework --no-dev
Loading composer repositories with package information
Updating dependencies
Generating autoload files
Generated autoload files containing 14 classes

There are no updates i think 4.0.4 is latest so that seems to work


//if you have a lot of additions such as bootstrap then you could edit composer.json but mistakes are likely to nbe made and could get messy.


RE: Only Update CI4 by Composer - InsiteFX - 10-01-2020

Myth/Auth is in it's own module, outside of the changes in the readme that are made
to Config/Validation/php and Config/Email.php all of these settings are listed in the
Myth/Auth readme.md file in the Myth/Auth root folder.


RE: Only Update CI4 by Composer - nc03061981 - 10-01-2020

(10-01-2020, 06:17 AM)captain-sensible Wrote: you can try :

$ php composer.phar  update codeigniter4/framework --no-dev

It work fine
Thanks

(10-01-2020, 06:29 AM)InsiteFX Wrote: Myth/Auth is in it's own module, outside of the changes in the readme that are made
to Config/Validation/php and Config/Email.php all of these settings are listed in the
Myth/Auth readme.md file in the Myth/Auth root folder.

Thanks for more clearly


RE: [SOLVED] Only Update CI4 by Composer - captain-sensible - 10-02-2020

your welcome