Skip to content

No error when scaffold source doesn't exist and prestissimo installed globally #73

Closed
@datvance

Description

@datvance

Not sure if this is an issue with drupal-scaffold or prestissimo, but if you have prestissimo installed globally, as per their docs, no errors or exceptions are thrown if the scaffold source cannot be found.

"drupal-scaffold": {
      "source": "https://raw.example.com/pantheon-systems/drops-8/{version}/{path}",

Should generate an error since example.com does not exist, but no errors:

$ composer install
...
Writing lock file
Generating optimized autoload files
$ cat web/.gitattributes
cat: web/.gitattributes: No such file or directory

After removing prestissimo, composer install correctly throws errors:

$ composer global remove hirak/prestissimo
$ composer install
...
Generating optimized autoload files
Downloading (failed)       
                                                                                                                                                                         
  [Composer\Downloader\TransportException]                                                                                                                               
  The "https://raw.example.com/pantheon-systems/drops-8/8.4.5/.gitattributes" file could not be downloaded: php_network_getaddresses: getaddrinfo failed: nodename nor   
  servname provided, or not known                                                                                                                                        
  failed to open stream: php_network_getaddresses: getaddrinfo failed: nodename nor servname provided, or not known                                                      
                                                                                                                                                                         
Exception trace:
...
$ cat web/.gitattributes
cat: web/.gitattributes: No such file or directory

Like I said, if this is a prestissimo issue I can submit it over there. Thanks.

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