Skip to content

fix(bug): new git dependency made build_sys.sh fail. Added git as a dependency to fix it.#212

Open
barakiva wants to merge 1 commit into
LibreBooking:masterfrom
barakiva:git-bug
Open

fix(bug): new git dependency made build_sys.sh fail. Added git as a dependency to fix it.#212
barakiva wants to merge 1 commit into
LibreBooking:masterfrom
barakiva:git-bug

Conversation

@barakiva

Copy link
Copy Markdown
Contributor

Heres the following logs from the failed build:


[4/4] STEP 23/23: RUN bash /usr/local/bin/build_app.sh
+ /usr/local/bin/build_app.sh::L12:   '[' -f /var/www/html/composer.json ']'
+ /usr/local/bin/build_app.sh::L14:   sed -i /var/www/html/composer.json -e 's:\(.*\)nickdnk/graph-sdk\(.*\)7.0\(.*\):\1joelbutcher/facebook-graph-sdk\26.1\3:'
+ /usr/local/bin/build_app.sh::L16:   composer install
Installing dependencies from lock file (including require-dev)
Verifying lock file contents can be installed on current platform.
Package operations: 135 installs, 0 updates, 0 removals
  - Downloading php-http/discovery (1.20.0)
  - Downloading composer/semver (3.4.4)
  - Downloading tbachert/spi (v1.0.5)
  - Downloading dasprid/enum (1.0.7)
  - Downloading bacon/bacon-qr-code (v3.1.1)
  - Downloading league/color-extractor (0.4.0)
  - Downloading claviska/simpleimage (4.4.0)
  - Downloading composer/pcre (3.4.0)
  - Downloading symfony/polyfill-intl-normalizer (v1.38.0)
  - Downloading symfony/polyfill-intl-idn (v1.38.1)
  - Downloading doctrine/lexer (3.0.1)
  - Downloading egulias/email-validator (4.0.4)
  - Downloading symfony/deprecation-contracts (v3.7.0)
  - Downloading psr/container (2.0.2)
  - Downloading symfony/service-contracts (v3.7.0)
  - Downloading symfony/stopwatch (v7.4.8)
  - Downloading symfony/process (v7.4.13)
  - Downloading symfony/polyfill-php84 (v1.38.1)
  - Downloading symfony/polyfill-php81 (v1.38.1)
  - Downloading symfony/polyfill-php80 (v1.37.0)
  - Downloading symfony/polyfill-mbstring (v1.38.2)
  - Downloading symfony/options-resolver (v7.4.8)
  - Downloading symfony/finder (v7.4.8)
  - Downloading symfony/polyfill-ctype (v1.37.0)
  - Downloading symfony/filesystem (v7.4.11)
  - Downloading psr/event-dispatcher (1.0.0)
  - Downloading symfony/event-dispatcher-contracts (v3.7.0)
  - Downloading symfony/event-dispatcher (v7.4.9)
  - Downloading symfony/polyfill-intl-grapheme (v1.38.1)
  - Downloading symfony/string (v7.4.13)
  - Downloading symfony/console (v7.4.13)
  - Downloading sebastian/diff (6.0.2)
  - Downloading react/event-loop (v1.6.0)
  - Downloading evenement/evenement (v3.0.2)
  - Downloading react/stream (v1.4.0)
  - Downloading react/promise (v3.3.0)
  - Downloading react/cache (v1.2.0)
  - Downloading react/dns (v1.14.0)
  - Downloading react/socket (v1.17.0)
  - Downloading react/child-process (v0.6.7)
  - Downloading fidry/cpu-core-counter (1.3.0)
  - Downloading ergebnis/agent-detector (1.2.0)
  - Downloading psr/log (3.0.2)
  - Downloading composer/xdebug-handler (3.0.5)
  - Downloading clue/ndjson-react (v1.3.0)
  - Downloading friendsofphp/php-cs-fixer (v3.95.5)
  - Downloading monolog/monolog (3.10.0)
  - Downloading ralouphie/getallheaders (3.0.3)
  - Downloading psr/http-message (2.0)
  - Downloading psr/http-factory (1.1.0)
  - Downloading guzzlehttp/psr7 (2.10.2)
  - Downloading psr/http-client (1.0.3)
  - Downloading guzzlehttp/promises (2.4.1)
  - Downloading guzzlehttp/guzzle (7.10.4)
  - Downloading psr/cache (3.0.0)
  - Downloading firebase/php-jwt (v7.0.5)
  - Downloading google/auth (v1.50.1)
  - Downloading google/apiclient-services (v0.442.0)
  - Downloading google/apiclient (v2.19.3)
  - Downloading google/recaptcha (1.3.1)
  - Downloading gregwar/captcha (v1.3.0)
  - Downloading joelbutcher/facebook-graph-sdk (v6.1.2)
  - Downloading league/oauth2-client (2.9.0)
  - Downloading league/uri-interfaces (7.8.1)
  - Downloading mashape/unirest-php (v3.0.4)
  - Downloading mibe/feedwriter (v1.1.2)
  - Downloading stduritemplate/stduritemplate (2.0.10)
  - Downloading ramsey/collection (2.1.1)
  - Downloading brick/math (0.14.8)
  - Downloading ramsey/uuid (4.9.2)
  - Downloading php-http/promise (1.2.2)
  - Downloading symfony/polyfill-php82 (v1.38.1)
  - Downloading open-telemetry/sem-conv (1.38.0)
  - Downloading open-telemetry/context (1.5.0)
  - Downloading open-telemetry/api (1.9.0)
  - Downloading nyholm/psr7-server (1.1.0)
  - Downloading open-telemetry/sdk (1.14.0)
  - Downloading doctrine/annotations (2.0.2)
  - Downloading microsoft/kiota-abstractions (1.5.2)
  - Downloading microsoft/kiota-serialization-text (1.5.2)
  - Downloading microsoft/kiota-serialization-multipart (1.5.2)
  - Downloading microsoft/kiota-serialization-json (1.5.2)
  - Downloading microsoft/kiota-serialization-form (1.5.2)
  - Downloading microsoft/kiota-http-guzzle (1.5.2)
  - Downloading microsoft/kiota-authentication-phpleague (1.5.2)
  - Downloading microsoft/microsoft-graph-core (v2.4.0)
  - Downloading microsoft/microsoft-graph (v3.2.0)
  - Downloading psr/simple-cache (3.0.0)
  - Downloading mobiledetect/mobiledetectlib (4.11.0)
  - Downloading pear/pear_exception (v1.0.2)
  - Downloading pear/console_getopt (v1.4.3)
  - Downloading pear/pear-core-minimal (v1.10.18)
  - Downloading pear/net_ldap2 (v2.3.0)
  - Downloading squizlabs/php_codesniffer (3.13.5)
  - Downloading phpcompatibility/php-compatibility (9.3.5)
  - Downloading phpmailer/phpmailer (v7.1.1)
  - Downloading phpstan/phpstan (2.2.2)
  - Downloading phpstan/phpstan-phpunit (2.0.16)
  - Downloading staabm/side-effects-detector (1.0.5)
  - Downloading sebastian/version (5.0.2)
  - Downloading sebastian/type (5.1.3)
  - Downloading sebastian/recursion-context (6.0.3)
  - Downloading sebastian/object-reflector (4.0.1)
  - Downloading sebastian/object-enumerator (6.0.1)
  - Downloading sebastian/global-state (7.0.2)
  - Downloading sebastian/exporter (6.3.2)
  - Downloading sebastian/environment (7.2.1)
  - Downloading sebastian/comparator (6.3.3)
  - Downloading sebastian/code-unit (3.0.3)
  - Downloading sebastian/cli-parser (3.0.2)
  - Downloading phpunit/php-timer (7.0.1)
  - Downloading phpunit/php-text-template (4.0.1)
  - Downloading phpunit/php-invoker (5.0.1)
  - Downloading phpunit/php-file-iterator (5.1.1)
  - Downloading theseer/tokenizer (1.3.1)
  - Downloading nikic/php-parser (v5.7.0)
  - Downloading sebastian/lines-of-code (3.0.1)
  - Downloading sebastian/complexity (4.0.1)
  - Downloading sebastian/code-unit-reverse-lookup (4.0.1)
  - Downloading phpunit/php-code-coverage (11.0.12)
  - Downloading phar-io/version (3.2.1)
  - Downloading phar-io/manifest (2.0.4)
  - Downloading myclabs/deep-copy (1.13.4)
  - Downloading phpunit/phpunit (11.5.55)
  - Downloading sabre/uri (3.1.0)
  - Downloading sabre/xml (4.1.0)
  - Downloading sabre/vobject (4.6.0)
  - Downloading smarty/smarty (v5.8.0)
  - Downloading stripe/stripe-php (v20.2.0)
  - Downloading masterminds/html5 (2.10.0)
  - Downloading league/uri (7.8.1)
  - Downloading symfony/html-sanitizer (v7.4.13)
  - Downloading phpoption/phpoption (1.9.5)
  - Downloading graham-campbell/result-type (v1.1.4)
  - Downloading vlucas/phpdotenv (v5.6.3)
   0/135 [>---------------------------]   0%
   1/135 [>---------------------------]   0%
   3/135 [>---------------------------]   2%
   8/135 [=>--------------------------]   5%
  11/135 [==>-------------------------]   8%
  12/135 [==>-------------------------]   8%
  14/135 [==>-------------------------]  10%
  19/135 [===>------------------------]  14%
  21/135 [====>-----------------------]  15%
  23/135 [====>-----------------------]  17%
  25/135 [=====>----------------------]  18%
  31/135 [======>---------------------]  22%
  32/135 [======>---------------------]  23%
  35/135 [=======>--------------------]  25%
  36/135 [=======>--------------------]  26%    Failed to download fidry/cpu-core-counter from dist: The "https://codeload.github.com/theofidry/cpu-core-counter/legacy.zip/db9508f7b1474469d9d3c53b86f817e344732678" file could not be downloaded (HTTP/2 400 )
    Now trying to download from source

  42/135 [========>-------------------]  31%
  45/135 [=========>------------------]  33%
  48/135 [=========>------------------]  35%
  49/135 [==========>-----------------]  36%
  52/135 [==========>-----------------]  38%
  55/135 [===========>----------------]  40%
  57/135 [===========>----------------]  42%
  59/135 [============>---------------]  43%
  61/135 [============>---------------]  45%
  65/135 [=============>--------------]  48%
  66/135 [=============>--------------]  48%
  69/135 [==============>-------------]  51%
  71/135 [==============>-------------]  52%
  73/135 [===============>------------]  54%
  75/135 [===============>------------]  55%
  76/135 [===============>------------]  56%
  79/135 [================>-----------]  58%
  80/135 [================>-----------]  59%
  84/135 [=================>----------]  62%
  85/135 [=================>----------]  62%
  89/135 [==================>---------]  65%
  91/135 [==================>---------]  67%
  94/135 [===================>--------]  69%
  97/135 [====================>-------]  71%
  98/135 [====================>-------]  72%
 100/135 [====================>-------]  74%
 101/135 [====================>-------]  74%
 102/135 [=====================>------]  75%
 103/135 [=====================>------]  76%
 108/135 [======================>-----]  80%
 109/135 [======================>-----]  80%
 112/135 [=======================>----]  82%
 113/135 [=======================>----]  83%
 114/135 [=======================>----]  84%
 117/135 [========================>---]  86%
 118/135 [========================>---]  87%
 122/135 [=========================>--]  90%
 126/135 [==========================>-]  93%
 129/135 [==========================>-]  95%
 134/135 [===========================>]  99%
 135/135 [============================] 100%
                                                            
  [RuntimeException]                                        
  git was not found in your PATH, skipping source download  
                                                            

install [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--dry-run] [--dev] [--no-suggest] [--no-dev] [--no-autoloader] [--no-progress] [--no-install] [-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] [--] [<packages>]...

++ /usr/local/bin/build_app.sh::L16:   echo 'Exit status 1 at line 16 from: composer install'
Exit status 1 at line 16 from: composer install
Error: building at STEP "RUN bash /usr/local/bin/build_app.sh": while running runtime: exit status 1

Build passes now. We should add a CI to prevent such bugs in the future.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant