Skip to content

Can't run in macOS with PHP 7.3 and Composer 2.2.x #587

Description

@odahcam

I have the following error:

/path/to/folder ✗ vendor/bin/roave-backward-compatibility-check --format=markdown > results.md

Detected last minor version: 2.69.10

In Process.php line 269:
                                                                                          
  The command "'git' 'rev-parse' '2.69.10'" failed.                                       
                                                                                          
  Exit Code: 128(Invalid exit argument)                                                   

  Working directory: /Users/.../Projects/path/to/project                        
                                                                                          
  Output:                                                                                 
  ================                                                                        
  2.69.10                                                                                 
                                                                                          
                                                                                          
  Error Output:                                                                           
  ================                                                                        
  fatal: ambiguous argument '2.69.10': unknown revision or path not in the working tree.  
  Use '--' to separate paths from revisions, like this:                                   
  'git <command> [<revision>...] -- [<file>...]'    

The correct "command" would be: "'git' 'rev-parse' 'v2.69.10'"

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions