Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

Git Hooks Fail after BLT Update #679

Closed
mikemadison13 opened this issue Nov 16, 2016 · 1 comment
Closed

Git Hooks Fail after BLT Update #679

mikemadison13 opened this issue Nov 16, 2016 · 1 comment
Labels
Bug Something isn't working

Comments

@mikemadison13
Copy link
Contributor

My system information:

  • Operating system type: Mac OS
  • Operating system version: El Capitan
  • BLT version: 8.x-dev (16/11/16)

Output of blt doctor:

blt > doctor:

Changed current directory to /home/vagrant/.composer

+----------------------+----------------------------------------------------------------------------------+
| Property             | Value                                                                            |
+----------------------+----------------------------------------------------------------------------------+
| %paths               |                                                                                  |
|  - %root             | /var/www/capitalcamp/docroot                                                     |
|  - %site             | sites/default                                                                    |
|  - %modules          | modules                                                                          |
|  - %themes           | themes                                                                           |
|  - %config-sync      | /var/www/capitalcamp/config/default                                              |
|  - %files            | sites/default/files                                                              |
|  - %private          | /var/www/capitalcamp/files-private                                               |
|  - %temp             | /tmp                                                                             |
| admin-theme          | seven                                                                            |
| blt-version          | 8.x-dev                                                                          |
| bootstrap            | Successful                                                                       |
| config-sync          | /var/www/capitalcamp/config/default                                              |
| db-driver            | mysql                                                                            |
| db-hostname          | localhost                                                                        |
| db-name              | drupal                                                                           |
| db-password          | drupal                                                                           |
| db-port              | 3306                                                                             |
| db-username          | drupal                                                                           |
| drupal-settings-file | sites/default/settings.php                                                       |
| drupal-version       | 8.2.2                                                                            |
| drush-alias-files    | /var/www/capitalcamp/docroot/../drush/site-aliases/aliases.drushrc.php           |
|                      | /var/www/capitalcamp/docroot/../drush/site-aliases/capitalcamp.aliases.drushrc.p |
|                      | hp                                                                               |
|                      | /var/www/capitalcamp/docroot/../drush/site-aliases/example.acsf.aliases.drushrc. |
|                      | php                                                                              |
|                      | /var/www/capitalcamp/docroot/../drush/site-aliases/example.local.aliases.drushrc |
|                      | .php                                                                             |
| drush-conf           | /var/www/capitalcamp/drush/drushrc.php                                           |
| drush-script         | /var/www/capitalcamp/vendor/drush/drush/drush.php                                |
| drush-temp           | /tmp                                                                             |
| drush-version        | 9.0.0-alpha1                                                                     |
| files                | sites/default/files                                                              |
| install-profile      |                                                                                  |
| local-drushrc        | /var/www/capitalcamp/docroot/sites/default/local.drushrc.php                     |
| local-settings       | /var/www/capitalcamp/docroot/sites/default/settings/local.settings.php           |
| modules              | modules                                                                          |
| php-bin              | /usr/bin/php                                                                     |
| php-conf             | /etc/php/5.6/cli/php.ini                                                         |
| php-os               | Linux                                                                            |
| private              | /var/www/capitalcamp/files-private                                               |
| root                 | /var/www/capitalcamp/docroot                                                     |
| site                 | sites/default                                                                    |
| temp                 | /tmp                                                                             |
| theme                | bartik                                                                           |
| themes               | themes                                                                           |
| uri                  | http://local.capitalcamp.com                                                     |
| user                 |                                                                                  |
+----------------------+----------------------------------------------------------------------------------+
+--------------------------+---------------------------------------------------------------------------------+
| Check                    | Outcome                                                                         |
+--------------------------+---------------------------------------------------------------------------------+
| checkDocrootExists       | Found docroot.                                                                  |
| checkCoreExists          | Drupal core exists                                                              |
| checkSettingsFile        | BLT settings are included in settings file.                                     |
| checkLocalSettingsFile   | Found your local settings file.                                                 |
| checkLocalDrushFile      | Found your local drush settings file.                                           |
| checkUri                 | $options['uri'] is set.                                                         |
| checkUriResponse         | Received a response from site http://local.capitalcamp.com.                     |
| checkFileSystem:%files   | Public files directory is writable.                                             |
| checkFileSystem:%private | Private files directory is writable.                                            |
| checkFileSystem:%temp    | Temporary files directory is writable.                                          |
| checkDbConnection        | Connected to database.                                                          |
| checkDrupalBootstrapped  | Bootstrapped Drupal via drush.                                                  |
| checkDrupalInstalled     | Drupal is installed.                                                            |
| checkCaching:page        | Drupal cache is disabled.                                                       |
| checkCaching:css         | CSS preprocessing is disabled.                                                  |
| checkCaching:js          | JS preprocessing is disabled.                                                   |
| checkNvmExists           | NVM does not exist.                                                             |
|                          |                                                                                 |
|                          | It is recommended that you use NVM to manage multiple versions of NodeJS on one |
|                          | machine.                                                                        |
|                          | Instructions for installing NVM can be found at:                                |
|                          |   https://github.com/creationix/nvm#installation                                |
| checkCiConfig            | Git remotes are set in project.yml.                                             |
| checkComposer:require    | acquia/blt is in composer.json's require object.                                |
| checkComposer:plugins    | hirak/prestissimo plugin for composer is installed.                             |
| checkBehat:exists        | Behat local settings file exists.                                               |
| checkBehat:root          | Behat drupal_root is set correctly for Drupal VM.                               |
| checkProjectYml:keys     | project.yml has no deprecated keys.                                             |
| checkAcsfConfig          | BLT settings are included in your pre-settings-php include.                     |
| checkDrupalVm:alias      | drush.aliases.local exists your drush aliases file.                             |
| checkDrupalVm            | Drupal VM is configured correctly.                                              |
| checkPhpDateTimezone     | PHP setting for date.timezone is correctly set                                  |
+--------------------------+---------------------------------------------------------------------------------+

When I run this command:

git commit

I get the following output:

Sniffing staged files via PHP Code Sniffer...
Linting staged twig files...

 [OK] All 1 Twig files contain valid syntax.                                                                            

sh: line 1: composer.lock: command not found
sh: line 2: project.yml: command not found

BUILD FAILED
/vendor/acquia/blt/phing/tasks/validate.xml:95:179: Task exited with code 127

And I expected this to happen:

git commit succeeded.

I believe this is related to #44 based on the location of the error in validate.xml -- https://github.com/acquia/blt/blob/8.x/phing/tasks/validate.xml#L95

@grasmash grasmash added the Bug Something isn't working label Nov 16, 2016
@grasmash
Copy link
Contributor

Resolved by #680

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants