pulibrary / recap

ReCAP Drupal 10 Site
GNU General Public License v2.0
2 stars 1 forks source link

Upgrade drupal core to version 10 #261

Closed christinach closed 1 year ago

christinach commented 1 year ago

closes #244

christinach commented 1 year ago

I found useful running: lando composer why-not drupal/core 10.0 This one returned:

drupal/core-recommended  9.5.9         requires          drupal/core (9.5.9)                                      
drupal/health_check      1.3.0         requires          drupal/core (^8 || ^9)                                   
drupal/juicebox          3.0.0-alpha2  requires          drupal/core (^8 || ^9)                                   
drupal/libraries         3.0.0-beta2   requires          drupal/core (^8.8 || ^9)                                 
drupal/upgrade_status    3.14.0        requires          drupal/core (^8 || ^9)                                   
drupal/core              10.0.0        requires          symfony/console (^6.2)                                   
drupal/drupal            dev-main      does not require  symfony/console (but v4.4.49 is installed)               
drupal/core              10.0.0        requires          symfony/dependency-injection (^6.2)                      
drupal/drupal            dev-main      does not require  symfony/dependency-injection (but v4.4.49 is installed)  
drupal/core              10.0.0        requires          symfony/event-dispatcher (^6.2)                          
drupal/drupal            dev-main      does not require  symfony/event-dispatcher (but v4.4.44 is installed)      
drupal/core              10.0.0        requires          symfony/http-foundation (^6.2)                           
drupal/drupal            dev-main      does not require  symfony/http-foundation (but v4.4.49 is installed)       
drupal/core              10.0.0        requires          symfony/http-kernel (^6.2)                               
drupal/drupal            dev-main      does not require  symfony/http-kernel (but v4.4.50 is installed)           
drupal/core              10.0.0        requires          symfony/mime (^6.2)                                      
drupal/drupal            dev-main      does not require  symfony/mime (but v5.4.13 is installed)                  
drupal/core              10.0.0        requires          symfony/routing (^6.2)                                   
drupal/drupal            dev-main      does not require  symfony/routing (but v4.4.44 is installed)               
drupal/core              10.0.0        requires          symfony/serializer (^6.2)                                
drupal/drupal            dev-main      does not require  symfony/serializer (but v4.4.47 is installed)            
drupal/core              10.0.0        requires          symfony/validator (^6.2)                                 
drupal/drupal            dev-main      does not require  symfony/validator (but v4.4.48 is installed)             
drupal/core              10.0.0        requires          symfony/process (^6.2)                                   
drupal/drupal            dev-main      does not require  symfony/process (but v4.4.44 is installed)               
drupal/core              10.0.0        requires          symfony/yaml (^6.2)                                      
drupal/drupal            dev-main      does not require  symfony/yaml (but v4.4.45 is installed)                  
drupal/core              10.0.0        requires          twig/twig (^3.4.3)                                       
drupal/drupal            dev-main      does not require  twig/twig (but v2.15.5 is installed)                     
drupal/core              10.0.0        requires          guzzlehttp/guzzle (^7.5)                                 
drupal/drupal            dev-main      does not require  guzzlehttp/guzzle (but 6.5.8 is installed)               
drupal/core              10.0.0        requires          guzzlehttp/psr7 (^2.4)                                   
drupal/drupal            dev-main      does not require  guzzlehttp/psr7 (but 1.9.1 is installed)                 
drupal/core              10.0.0        requires          asm89/stack-cors (^2.1)                                  
drupal/drupal            dev-main      does not require  asm89/stack-cors (but 1.3.0 is installed)                
drupal/core              10.0.0        requires          psr/log (^3.0)                                           
drupal/drupal            dev-main      does not require  psr/log (but 1.1.4 is installed)  

I went ahead and ran for each module: lando composer require --with-all-dependencies <name of the module>. It could not persist the composer.lock changes but kept reverting them. Also this command: lando composer show --tree

christinach commented 1 year ago

We're using 'drupal/juicebox' which seems to have a test version for drupal 10.

christinach commented 1 year ago

I attempted to upgrade first to drupal 8. I ran successfully lando composer update drupal --with-all-dependencies. When I run lando drush updatedb it fails:

In BootstrapHook.php line 32:                                                                      
  Bootstrap failed. Run your command with -vvv for more information.  

I stopped here. lando drush status

https://docs.lando.dev/config/releases.html
Drupal version : 9.5.11                            
Site URI       : http://recap.lndo.site            
DB driver      : mysql                             
DB hostname    : database                          
DB port        : 3306                              
DB username    : drupal9                           
DB name        : drupal9                           
PHP binary     : /usr/local/bin/php                
PHP config     :                                   
PHP OS         : Linux                             
Drush script   : /app/vendor/bin/drush             
Drush version  : 10.6.2                            
Drush temp     : /tmp                              
Drush configs  : /app/vendor/drush/drush/drush.yml 
                 /app/drush/drush.yml              
Drupal root    : /app                              
Site path      : sites/default  
maxkadel commented 1 year ago

Closed in favor of #262