Giter VIP home page Giter VIP logo

phabalicious's People

Contributors

d34dman avatar dependabot[bot] avatar joachim-n avatar mbutkereit avatar mgrsskls avatar mikran avatar mlnmln avatar muschpusch avatar renovate-bot avatar renovate[bot] avatar stmh avatar tstoeckler avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

phabalicious's Issues

composer build-phar giving errors

Unable build from source on commit ab3cbe3

$ composer build-phar
> box compile
sh: box: command not found
Script box compile handling the build-phar event returned with error code 127

image

copySSHKeys fails on remote because of wrong assumptions where the files are stored

[notice] cd /home/stephan && docker exec xxx_web_1 mkdir -p /root/.ssh
[notice] cd /home/stephan && docker cp /Users/stephan/dev/web/multibasebox/projects/xxx/ssh-keys/docker-root-key xxx_web_1:/root/.ssh/id_rsa
lstat /Users: no such file or directory

In CommandResult.php line 51:

  [Phabalicious\Exception\FailedShellCommandException]
  `cd /home/stephan && docker cp /Users/stephan/dev/web/multibasebox/projects/xxx/ssh-keys/docker-root-key callrequestint_web_1:/root/.ssh/id_rs
  a` failed!

php exception after self-updating the app

PHP Warning:  Uncaught ErrorException: Warning: require(phar:///usr/local/bin/phab/vendor/composer/../symfony/console/Event/ConsoleTerminateEvent.php): failed to open stream: phar error: internal corruption of phar "/usr/local/bin/phab" (actual filesize mismatch on file "vendor/symfony/console/Event/ConsoleTerminateEvent.php") in phar:///usr/local/bin/phab/vendor/symfony/debug/DebugClassLoader.php:151
Stack trace:
#0 phar:///usr/local/bin/phab/vendor/symfony/console/Application.php(933): spl_autoload_call('Symfony\\Compone...')
#1 phar:///usr/local/bin/phab/vendor/symfony/console/Application.php(262): Symfony\Component\Console\Application->doRunCommand(Object(Phabalicious\Command\SelfUpdateCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#2 phar:///usr/local/bin/phab/vendor/symfony/console/Application.php(145): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutp in phar:///usr/local/bin/phab/vendor/symfony/debug/DebugClassLoader.php on line 151

Seems like php can't find some classes after the app got replaced with the new one.

install task fails for Drupal 8 without any configuration

to reproduce:

  1. Scaffold a new d8-project
  2. run phab -cmbb install on that project
  3. after a while, you'll get an error message that drupal can't import an empty folder

This error should also show up on the reset-task without any configuration

script-deployments do not work

running scripts for deplyoment do not work:

hosts:
  test: 
    deploy:
      - echo "running deployment"

You can workaround by rename it to "deployFinished"

D8 scaffolding throws a Twig exception

Running phab app:scaffold https://config.factorial.io/scaffold/d8/d8.yml fails before it can complete.

...

> DrupalProject\composer\ScriptHandler::createRequiredFiles

Fatal error: Uncaught Symfony\Component\Debug\Exception\ClassNotFoundException: Attempted to load class "Twig_Test" from the global namespace.
Did you forget a "use" statement? in phar:///usr/local/bin/phab/vendor/twig/twig/lib/Twig/Extension/Core.php:203
Stack trace:
#0 phar:///usr/local/bin/phab/vendor/twig/twig/lib/Twig/ExtensionSet.php(451): Twig_Extension_Core->getTests()
#1 phar:///usr/local/bin/phab/vendor/twig/twig/lib/Twig/ExtensionSet.php(431): Twig_ExtensionSet->initExtension(Object(Twig_Extension_Core))
#2 phar:///usr/local/bin/phab/vendor/twig/twig/lib/Twig/ExtensionSet.php(400): Twig_ExtensionSet->initExtensions()
#3 phar:///usr/local/bin/phab/vendor/twig/twig/lib/Twig/Environment.php(941): Twig_ExtensionSet->getUnaryOperators()
#4 phar:///usr/local/bin/phab/vendor/twig/twig/lib/Twig/Lexer.php(356): Twig_Environment->getUnaryOperators()
#5 phar:///usr/local/bin/phab/vendor/twig/twig/lib/Twig/Lexer.php(65): Twig_Lexer->getOperatorRegex()
#6 phar:///usr/local/bin/phab/vendor/twig/twig/lib/Twig/Environment.php( in phar:///usr/local/bin/phab/vendor/twig/twig/lib/Twig/Extension/Core.php on line 203

(Please see file attached for detailed log).

twig_error.txt

phabalicious quits with an error when interaction is required while running composer

When some interaction is required while running composer, phabalicious quits by giving error like the following.

[Phabalicious\Exception\FailedShellCommandException]           
  `cd /var/www && composer install` failed!                      
  Gathering patches for root package.                            
  Gathering patches for root package.                            
  Gathering patches for dependencies. This might take a minute.

The above error was resolved by running composer install directly in console and then carrying on with phab -cmbb reset

host- and task-specific scripts do not get executed

A config similar to this will not work when running for example the reset-task

scripts:
  test:
    - echo "Success"

hosts:
  test:
    type: dev
    rootFolder: /some-root-folder
    needs: 
      - drush
      - scripts
    reset:
      - execute(script, test)

Copy of .netrc failes

When I start a docker instance I get this error at the end of the start process.
Docker instances are working normally.

11:14:08 > phab docker run -cmbb

[Warning] Found deprecated key in mbb, needs: drush7, drush8 and drush9 are deprecated, please replace with
drush and set drupalVersion and drushVersion accordingly.

Starting bi033-respimat-global_mysql_1 ... done
Starting bi033-respimat-global_solr_1 ...
Starting bi033-respimat-global_solr_1 ... done

Starting bi033-respimat-global_web_1 ... done

[OK] Task reload_haproxy executed successfully!

// Services up and running!

[OK] Task waitForServices executed successfully!

// Handled /root/.ssh/authorized_keys successfully!

// Handled /root/.ssh/id_rsa successfully!

// Handled /root/.ssh/id_rsa.pub successfully!

// Handled /root/.ssh/known_hosts successfully!

cp: /Users/kris/Documents/multibasebox/projects/BI033-respimat-global/./.netrc: No such file or directory

In CommandResult.php line 51:

cd /Users/kris/Documents/multibasebox/projects/BI033-respimat-global && cp -r "/Users/kris/Documents/multibasebox/projects/BI033-respimat-global/./.netrc" "/tmp/phab.tmp..netr c" failed!

docker [-c|--config CONFIG] [--blueprint [BLUEPRINT]] [-f|--fabfile [FABFILE]] [--offline [OFFLINE]] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [--] ...

Fix invalid `.fabfile.yaml` for FR012 project

when trying to run drush status on config mbb, it is throwing error in fr012.

phab drush -c mbb status                                                                                                                           
Could not validate config `mbb`
Missing key rootFolder in dockerHost: `default`: The rootFolder to start with

Can't run from any folder like fabalicious

I used to be able to run drush commands through fabalicious from /web/modules/dev/custom_module, but now it throws an error with Phabalicious:

machine:dir user$ phab --config=mbb drush cr

In ConfigurationService.php line 102:
                                                                                                        
  Could not find any fabfile at '/Users/user/projects/mbb/projects/drupal8/web/modules/dev/custom_module'  
                                                                                                        

drush [-c|--config CONFIG] [--blueprint [BLUEPRINT]] [-f|--fabfile [FABFILE]] [--offline [OFFLINE]] [--] <drush>...

Updating phabalicious causes error

When using the buildin update function the update is successfull but I get am error message at the end:

17:49:05 > phab self-update --allow-unstable=1

Version 3.0.0-beta.3 of phabalicious is available. Run phab self-update --allow-unstable=1 to update your local
installation.

Visit https://github.com/factorial-io/phabalicious/releases for more info.

Current version is 3.0.0-beta.2, looking for a new version ...

[OK] Updated phabalicious successfully to 3.0.0-beta.3

PHP Warning: Uncaught ErrorException: Warning: require(phar:///usr/local/bin/phab/vendor/composer/../symfony/console/Event/ConsoleTerminateEvent.php): failed to open stream: phar error: internal corruption of phar "/usr/local/bin/phab" (actual filesize mismatch on file "vendor/symfony/console/Event/ConsoleTerminateEvent.php") in phar:///usr/local/bin/phab/vendor/symfony/debug/DebugClassLoader.php:151
Stack trace:
#0 phar:///usr/local/bin/phab/vendor/symfony/console/Application.php(933): spl_autoload_call('Symfony\Compone...')
#1 phar:///usr/local/bin/phab/vendor/symfony/console/Application.php(262): Symfony\Component\Console\Application->doRunCommand(Object(Phabalicious\Command\SelfUpdateCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#2 phar:///usr/local/bin/phab/vendor/symfony/console/Application.php(145): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutp in phar:///usr/local/bin/phab/vendor/symfony/debug/DebugClassLoader.php on line 151
PHP Fatal error: Symfony\Component\Debug\DebugClassLoader::loadClass(): Failed opening required 'phar:///usr/local/bin/phab/vendor/composer/../symfony/console/Event/ConsoleTerminateEvent.php' (include_path='.:') in phar:///usr/local/bin/phab/vendor/symfony/debug/DebugClassLoader.php on line 151
PHP Fatal error: require(): Failed opening required 'phar:///usr/local/bin/phab/vendor/composer/../symfony/debug/Exception/FatalErrorException.php' (include_path='.:') in phar:///usr/local/bin/phab/vendor/symfony/debug/DebugClassLoader.php on line 151

app:scaffold fails if target folder doesn't exists

Steps to reproduce:

  1. phab app:scaffold https://config.factorial.io/scaffold/d8/d8.yml
  2. Enter the required inputs
  3. Scaffolder throws an error.
phab app:scaffold https://config.factorial.io/scaffold/d8/d8.yml
Please provide the name of the new project: esd9
Please provide the short name of the new project (1-5 letters): es
usage: mkdir [-pv] [-m mode] directory ...

In CommandResult.php line 51:

  `cd /Users/shibindas/work/multibasebox/projects && mkdir -p` failed!


app:scaffold [-f|--fabfile [FABFILE]] [--offline [OFFLINE]] [--name [NAME]] [-s|--short-name [SHORT-NAME]] [--output [OUTPUT]] [--override [OVERRIDE]] [--] <scaffold-url>

projects fish 2018-12-19 18-02-20

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.