Skip to content

composer.json does not match the expected JSON schema #80

Description

@HeneryH

I've only made basic changes to include additional modules. Not sure what could be wrong. Is this a 'me' problem?

Also, minor but the updater bin did not seem to be included in my initial 10.x install.

 __   __  _______  ______    __   __  _______
|  | |  ||   _   ||    _ |  |  | |  ||       |
|  |_|  ||  |_|  ||   | ||  |  | |  ||    _  |
|       ||       ||   |_||_ |  |_|  ||   |_| |
|       ||       ||    __  ||       ||    ___|
 |     | |   _   ||   |  | ||       ||   |
  |___|  |__| |__||___|  |_||_______||___|

Varbase Updater

Project root           : /var/www/varbase 

Please choose your Drupal installation folder. Type the folder name or hit enter to choose the default one: (docroot): 


You are on the latest vardot/varbase version. No updates are required.

This command will guide you to update your Varbase project.

The update process will go through several tasks to update your Drupal core and modules. Please run this script on a development environment.
 
The command will go through the following steps:
         1. Backup your current installation (code and database)
         2. Cleanup and update your composer.json to prepare for Varbase updates
         3. Update Varbase using (composer update)
         4. Enable some required modules before running Drupal database updates
         5. Update Drupal database for latest changes (drush updatedb)
         6. Write log files and perform some cleanups
 
The update process will go through several tasks to update your Drupal core and modules. Please run this script on a development environment.
Do you want to start the update process? (yes): 

Do you want to create a backup snapshot before starting the update process? (yes): 
n
Backup snapshot skipped...
git version 2.45.2
Preparing composer.json for Varbase updates...
You are using cweagans\composer-patches 1.x - unable to auto-handle patching failures.
Generating optimized autoload files
  - CiviCRM asset map
Warning: Ambiguous class resolution, "FontLib\WOFF\TableDirectoryEntry" was found in both "/var/www/varbase/vendor/phenx/php-font-lib/src/FontLib/WOFF/TableDirectoryEntry.php" and "/var/www/varbase/vendor/dompdf/php-font-lib/src/FontLib/WOFF/TableDirectoryEntry.php", the first will be used.
.
. a bunch of warnings
.
.
Warning: Ambiguous class resolution, "FontLib\BinaryStream" was found in both "/var/www/varbase/vendor/phenx/php-font-lib/src/FontLib/BinaryStream.php" and "/var/www/varbase/vendor/dompdf/php-font-lib/src/FontLib/BinaryStream.php", the first will be used.
To resolve ambiguity in classes not under your control you can ignore them by path using exclude-files-from-classmap
Generated optimized autoload files containing 14576 classes
Refactoring composer.json
composer.json has been updated. Now is your chance to perform any manual changes. Please do your changes (if any) then press enter to continue... 

Updating Varbase...

In Factory.php line 317:
                                                                          
  "./composer.json" does not match the expected JSON schema:              
   - repositories[0].type : The property type is required                 
   - repositories[0].url : The property url is required                   
   - repositories[0].package : The property package is required           
   - repositories[0] : Failed to match at least one schema                
   - repositories[0] : Object value found, but a boolean is required      
   - repositories[0] : Does not have a value in the enumeration [false]   
   - repositories[1].type : The property type is required                 
   - repositories[1].url : The property url is required                   
   - repositories[1].package : The property package is required           
   - repositories[1] : Failed to match at least one schema                
   - repositories[1] : Object value found, but a boolean is required      
   - repositories[1] : Does not have a value in the enumeration [false]   
   - repositories[2].type : The property type is required                 
   - repositories[2].url : The property url is required                   
   - repositories[2].package : The property package is required           
   - repositories[2] : Failed to match at least one schema                
   - repositories[2] : Object value found, but a boolean is required      
   - repositories[2] : Does not have a value in the enumeration [false]   
   - repositories[3].type : The property type is required                 
   - repositories[3].url : The property url is required                   
   - repositories[3].package : The property package is required           
   - repositories[3] : Failed to match at least one schema                
   - repositories[3] : Object value found, but a boolean is required      
   - repositories[3] : Does not have a value in the enumeration [false]   
   - repositories[4].type : The property type is required                 
   - repositories[4].url : The property url is required                   
   - repositories[4].package : The property package is required           
   - repositories[4] : Failed to match at least one schema                
   - repositories[4] : Object value found, but a boolean is required      
   - repositories[4] : Does not have a value in the enumeration [false]   
   - repositories[5].type : The property type is required                 
   - repositories[5].url : The property url is required                   
   - repositories[5].package : The property package is required           
   - repositories[5] : Failed to match at least one schema                
   - repositories[5] : Object value found, but a boolean is required      
   - repositories[5] : Does not have a value in the enumeration [false]   
   - repositories[6].type : The property type is required                 
   - repositories[6].url : The property url is required                   
   - repositories[6].package : The property package is required           
   - repositories[6] : Failed to match at least one schema                
   - repositories[6] : Object value found, but a boolean is required      
   - repositories[6] : Does not have a value in the enumeration [false]   
   - repositories[7].type : The property type is required                 
   - repositories[7].url : The property url is required                   
   - repositories[7].package : The property package is required           
   - repositories[7] : Failed to match at least one schema                
   - repositories[7] : Object value found, but a boolean is required      
   - repositories[7] : Does not have a value in the enumeration [false]   
   - repositories[8].type : The property type is required                 
   - repositories[8].url : The property url is required                   
   - repositories[8].package : The property package is required           
   - repositories[8] : Failed to match at least one schema                
   - repositories[8] : Object value found, but a boolean is required      
   - repositories[8] : Does not have a value in the enumeration [false]   
   - repositories[9].type : The property type is required                 
   - repositories[9].url : The property url is required                   
   - repositories[9].package : The property package is required           
   - repositories[9] : Failed to match at least one schema                
   - repositories[9] : Object value found, but a boolean is required      
   - repositories[9] : Does not have a value in the enumeration [false]   
   - repositories[10].type : The property type is required                
   - repositories[10].url : The property url is required                  
   - repositories[10].package : The property package is required          
   - repositories[10] : Failed to match at least one schema               
   - repositories[10] : Object value found, but a boolean is required     
   - repositories[10] : Does not have a value in the enumeration [false]  
   - repositories[11].type : The property type is required                
   - repositories[11].url : The property url is required                  
   - repositories[11].package : The property package is required          
   - repositories[11] : Failed to match at least one schema               
   - repositories[11] : Object value found, but a boolean is required     
   - repositories[11] : Does not have a value in the enumeration [false]  
   - repositories[12].type : The property type is required                
   - repositories[12].url : The property url is required                  
   - repositories[12].package : The property package is required          
   - repositories[12] : Failed to match at least one schema               
   - repositories[12] : Object value found, but a boolean is required     
   - repositories[12] : Does not have a value in the enumeration [false]  
   - repositories[13].type : The property type is required                
   - repositories[13].url : The property url is required                  
   - repositories[13].package : The property package is required          
   - repositories[13] : Failed to match at least one schema               
   - repositories[13] : Object value found, but a boolean is required     
   - repositories[13] : Does not have a value in the enumeration [false]  
   - repositories[14].type : The property type is required                
   - repositories[14].url : The property url is required                  
   - repositories[14].package : The property package is required          
   - repositories[14] : Failed to match at least one schema               
   - repositories[14] : Object value found, but a boolean is required     
   - repositories[14] : Does not have a value in the enumeration [false]  
   - repositories[15].type : The property type is required                
   - repositories[15].url : The property url is required                  
   - repositories[15].package : The property package is required          
   - repositories[15] : Failed to match at least one schema               
   - repositories[15] : Object value found, but a boolean is required     
   - repositories[15] : Does not have a value in the enumeration [false]  
   - repositories[16].type : The property type is required                
   - repositories[16].url : The property url is required                  
   - repositories[16].package : The property package is required          
   - repositories[16] : Failed to match at least one schema               
   - repositories[16] : Object value found, but a boolean is required     
   - repositories[16] : Does not have a value in the enumeration [false]  
   - repositories[17].type : The property type is required                
   - repositories[17].url : The property url is required                  
   - repositories[17].package : The property package is required          
   - repositories[17] : Failed to match at least one schema               
   - repositories[17] : Object value found, but a boolean is required     
   - repositories[17] : Does not have a value in the enumeration [false]  
   - repositories[18].type : The property type is required                
   - repositories[18].url : The property url is required                  
   - repositories[18].package : The property package is required          
   - repositories[18] : Failed to match at least one schema               
   - repositories[18] : Object value found, but a boolean is required     
   - repositories[18] : Does not have a value in the enumeration [false]  
   - repositories[19].type : The property type is required                
   - repositories[19].url : The property url is required                  
   - repositories[19].package : The property package is required          
   - repositories[19] : Failed to match at least one schema               
   - repositories[19] : Object value found, but a boolean is required     
   - repositories[19] : Does not have a value in the enumeration [false]  
   - repositories[20].type : The property type is required                
   - repositories[20].url : The property url is required                  
   - repositories[20].package : The property package is required          
   - repositories[20] : Failed to match at least one schema               
   - repositories[20] : Object value found, but a boolean is required     
   - repositories[20] : Does not have a value in the enumeration [false]  
                                                                          

update [--with WITH] [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--dry-run] [--dev] [--no-dev] [--lock] [--no-install] [--no-audit] [--audit-format AUDIT-FORMAT] [--no-autoloader] [--no-suggest] [--no-progress] [-w|--with-dependencies] [-W|--with-all-dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [-m|--minimal-changes] [--patch-only] [-i|--interactive] [--root-reqs] [--bump-after-update [BUMP-AFTER-UPDATE]] [--] [<packages>...]

There was an error while updating Varbase to the latest version. Please check /var/www/varbase/.update-error-log for more information.
Would you like to abort the update process? (no): 

 [success] Cache rebuild complete.
Enabling new required modules for the latest Varbase version...
Updating the database for latest changes.
 [success] Cache rebuild complete.
 [error]  CiviCRM: System: Please specify a realistic site URL (Ex: drush -l  
http://example.com:456 ...).
 
 [warning] CiviCRM: System: The settings file  
"/var/www/varbase/docroot/sites/default/civicrm.settings.php" should not be  
writable.


 // Requirements check reports errors. Do you wish to continue?: yes.                                                   

 [success] No pending updates.
Hoya! Updates are now done. We will add a link in the near future for here to link to common issues appearing after updates and how to fix them.

                                                   
  Command "varbase-version-check" is not defined.  
                                                   

me@Drupal:/var/www/varbase$ 

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions