HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Building a Release

Hello,

I think I'm closer to getting it.

When I get it I will publish each new version that they publish here in this forum. It's costing me my job.

I have this error when i try to do ./bin/release

Do you have any idea what could be wrong?

Thanks!

Tagged:

Answers

  • I am trying on ubuntu and I stop here:

    luis@luis:~/Escritorio/vanilla$ ./bin/release.sh
    
    ==================== Verifying Dependencies ====================
    NODE VERSION: v12.22.9
    YARN VERSION: 0.32+git
    PHP 8.1.2-1ubuntu2.14 (cli) (built: Aug 18 2023 11:41:11) (NTS)
    Copyright (c) The PHP Group
    Zend Engine v4.1.2, Copyright (c) Zend Technologies
        with Zend OPcache v8.1.2-1ubuntu2.14, Copyright (c), by Zend Technologies
    Composer 2.2.6 2022-02-04 17:00:38
    
    ==================== Preparing Command ====================
    > Vanilla\Setup\ComposerHelper::preUpdate
    Installing dependencies from lock file (including require-dev)
    Verifying lock file contents can be installed on current platform.
    Nothing to install, update or remove
    Package container-interop/container-interop is abandoned, you should avoid using it. Use psr/container instead.
    Package vanilla/legacy-oauth is abandoned, you should avoid using it. No replacement was suggested.
    Package webmozart/path-util is abandoned, you should avoid using it. Use symfony/filesystem instead.
    Generating autoload files
    63 packages you are using are looking for funding.
    Use the `composer fund` command to find out more!
    > Vanilla\Setup\ComposerHelper::postUpdate
    
    Building addon cache
    Addon cache built
    Skipping automatic JS build because VANILLA_BUILD_DISABLE_AUTO_BUILD env variable is set to "true".
    00h00m00s 0/0: : ERROR: [Errno 2] No such file or directory: 'install'
    /home/luis/Escritorio/vanilla
    \n==================== Running Command ====================
    (node:25033) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'green' of undefined
        at promptRequiredText (/home/luis/Escritorio/vanilla/bin/scripts/utils.js:23:24)
        at promptVersion (/home/luis/Escritorio/vanilla/bin/scripts/utils.js:45:12)
        at run (/home/luis/Escritorio/vanilla/bin/scripts/buildRelease.js:20:30)
        at Object.<anonymous> (/home/luis/Escritorio/vanilla/bin/scripts/buildRelease.js:82:1)
        at Module._compile (internal/modules/cjs/loader.js:999:30)
        at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
        at Module.load (internal/modules/cjs/loader.js:863:32)
        at Function.Module._load (internal/modules/cjs/loader.js:708:14)
        at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12)
        at internal/main/run_main_module.js:17:47
    (node:25033) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
    (node:25033) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
    
  • I'm moving forward. With a clean installation of Ubuntu I do:


    sudo apt-get install git
    
    
    
    
    git clone https://github.com/vanilla/vanilla.git
    
    
    
    
    sudo apt-get install node
    
    
    
    
    sudo apt-get install nodejs
    
    
    
    
    sudo apt-get install nodejs
    
    
    
    
    sudo apt-get install yarn
    
    
    
    
    sudo apt-get install composer
    
    
    
    
    sudo apt-get install php
    
    
    
    
    sudo apt-get update
    
    
    
    
    sudo apt-get install node-shelljs
    
    
    
    
    sudo apt-get install node-chalk
    
    
    
    
    sudo apt-get install node-prompts
    
    
    
    
    sudo apt-get install php-curl
    
    
    
    
    sudo apt-get install php-dom
    
    
    
    
    sudo apt-get install php-gd
    
    
    
    
    composer require smarty/smarty
    

    Now I am here:

    luis@luis-ThinkCentre-M73:~/Escritorio/vanilla$ ./bin/release.sh
    
    ==================== Verifying Dependencies ====================
    NODE VERSION: v12.22.9
    YARN VERSION: 0.32+git
    PHP 8.1.2-1ubuntu2.14 (cli) (built: Aug 18 2023 11:41:11) (NTS)
    Copyright (c) The PHP Group
    Zend Engine v4.1.2, Copyright (c) Zend Technologies
        with Zend OPcache v8.1.2-1ubuntu2.14, Copyright (c), by Zend Technologies
    Composer 2.2.6 2022-02-04 17:00:38
    
    ==================== Preparing Command ====================
    > Vanilla\Setup\ComposerHelper::preUpdate
    Installing dependencies from lock file (including require-dev)
    Verifying lock file contents can be installed on current platform.
    Nothing to install, update or remove
    Package container-interop/container-interop is abandoned, you should avoid using it. Use psr/container instead.
    Package vanilla/legacy-oauth is abandoned, you should avoid using it. No replacement was suggested.
    Package webmozart/path-util is abandoned, you should avoid using it. Use symfony/filesystem instead.
    Generating autoload files
    63 packages you are using are looking for funding.
    Use the `composer fund` command to find out more!
    > Vanilla\Setup\ComposerHelper::postUpdate
    
    Building addon cache
    Addon cache built
    Skipping automatic JS build because VANILLA_BUILD_DISABLE_AUTO_BUILD env variable is set to "true".
    00h00m00s 0/0: : ERROR: [Errno 2] No such file or directory: 'install'
    /home/luis/Escritorio/vanilla
    \n==================== Running Command ====================
    (node:17751) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'green' of undefined
        at promptRequiredText (/home/luis/Escritorio/vanilla/bin/scripts/utils.js:23:24)
        at promptVersion (/home/luis/Escritorio/vanilla/bin/scripts/utils.js:45:12)
        at run (/home/luis/Escritorio/vanilla/bin/scripts/buildRelease.js:20:30)
        at Object.<anonymous> (/home/luis/Escritorio/vanilla/bin/scripts/buildRelease.js:82:1)
        at Module._compile (internal/modules/cjs/loader.js:999:30)
        at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
        at Module.load (internal/modules/cjs/loader.js:863:32)
        at Function.Module._load (internal/modules/cjs/loader.js:708:14)
        at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12)
        at internal/main/run_main_module.js:17:47
    (node:17751) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
    (node:17751) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
    
  • Just spitballing: do you maybe want to reverse wherever this comes from to make it build more of the JavaScript?

    Skipping automatic JS build because VANILLA_BUILD_DISABLE_AUTO_BUILD env variable is set to "true".
    

    Should be enough to launch via:$ VANILLA_BUILD_DISABLE_AUTO_BUILD=false ./bin/release.sh

    Maybe the setting is inside the Shell script, though.

  • I think I am near!


    luis@luis-ThinkCentre-M73:~/Escritorio/vanilla$ ./bin/release.sh
    
    ==================== Verifying Dependencies ====================
    NODE VERSION: v12.22.9
    YARN VERSION: 3.1.1
    PHP 8.1.2-1ubuntu2.14 (cli) (built: Aug 18 2023 11:41:11) (NTS)
    Copyright (c) The PHP Group
    Zend Engine v4.1.2, Copyright (c) Zend Technologies
        with Zend OPcache v8.1.2-1ubuntu2.14, Copyright (c), by Zend Technologies
    Composer 2.2.6 2022-02-04 17:00:38
    
    ==================== Preparing Command ====================
    > Vanilla\Setup\ComposerHelper::preUpdate
    Installing dependencies from lock file (including require-dev)
    Verifying lock file contents can be installed on current platform.
    Nothing to install, update or remove
    Package container-interop/container-interop is abandoned, you should avoid using it. Use psr/container instead.
    Package vanilla/legacy-oauth is abandoned, you should avoid using it. No replacement was suggested.
    Package webmozart/path-util is abandoned, you should avoid using it. Use symfony/filesystem instead.
    Generating autoload files
    63 packages you are using are looking for funding.
    Use the `composer fund` command to find out more!
    > Vanilla\Setup\ComposerHelper::postUpdate
    
    Building addon cache
    Addon cache built
    Skipping automatic JS build because VANILLA_BUILD_DISABLE_AUTO_BUILD env variable is set to "true".
    ➤ YN0000: ┌ Resolution step
    ➤ YN0000: └ Completed
    ➤ YN0000: ┌ Fetch step
    ➤ YN0000: └ Completed
    ➤ YN0000: ┌ Link step
    ➤ YN0000: └ Completed
    ➤ YN0000: Done in 0s 101ms
    /home/luis/Escritorio/vanilla
    \n==================== Running Command ====================
    ✔ What version name do you want to use? … 2025.001
    ✔ You entered 2025.001. Would you like to proceed? … yes
    ✔ What branch would you like to build from? This command works for all vanilla versions after 2.8+2019.003 … master
    ✔ You entered master. Would you like to proceed? … yes
    
    ==================== Preparing Fresh Vanilla Clone ====================
    Cloning new copy of vanilla into /home/luis/Escritorio/vanilla/build/temp
    Clonando en 'vanilla'...
    
    ==================== Installing dependencies & Building ====================
    > Vanilla\Setup\ComposerHelper::preUpdate
    Installing dependencies from lock file
    Verifying lock file contents can be installed on current platform.
    Package operations: 83 installs, 0 updates, 0 removals
        0 [>---------------------------]    0 [->--------------------------]
      - Installing symfony/polyfill-mbstring (v1.27.0): Extracting archive
      - Installing bopoda/robots-txt-parser (v2.4.1): Extracting archive
      - Installing psr/container (1.1.2): Extracting archive
      - Installing container-interop/container-interop (1.2.0): Extracting archive
      - Installing delight-im/http (v2.1.0): Extracting archive
      - Installing delight-im/cookie (v3.4.0): Extracting archive
      - Installing symfony/polyfill-ctype (v1.27.0): Extracting archive
      - Installing webmozart/assert (1.11.0): Extracting archive
      - Installing dragonmantank/cron-expression (v3.3.2): Extracting archive
      - Installing symfony/deprecation-contracts (v2.5.2): Extracting archive
      - Installing fakerphp/faker (v1.21.0): Extracting archive
      - Installing psr/event-dispatcher (1.0.0): Extracting archive
      - Installing fig/event-dispatcher-util (1.3.1): Extracting archive
      - Installing ralouphie/getallheaders (3.0.3): Extracting archive
      - Installing psr/http-message (1.0.1): Extracting archive
      - Installing psr/http-factory (1.0.2): Extracting archive
      - Installing guzzlehttp/psr7 (2.4.4): Extracting archive
      - Installing guzzlehttp/promises (1.5.2): Extracting archive
      - Installing grpc/grpc (1.52.0): Extracting archive
      - Installing google/protobuf (v3.22.2): Extracting archive
      - Installing google/longrunning (v0.2.5): Extracting archive
      - Installing psr/cache (1.0.1): Extracting archive
      - Installing psr/http-client (1.0.1): Extracting archive
      - Installing guzzlehttp/guzzle (7.5.0): Extracting archive
      - Installing firebase/php-jwt (v6.4.0): Extracting archive
      - Installing google/auth (v1.25.0): Extracting archive
      - Installing google/grpc-gcp (v0.2.1): Extracting archive
      - Installing google/common-protos (v3.2.0): Extracting archive
      - Installing google/gax (v1.19.1): Extracting archive
      - Installing rize/uri-template (0.3.5): Extracting archive
      - Installing psr/log (1.1.4): Extracting archive
      - Installing monolog/monolog (2.9.1): Extracting archive
      - Installing google/cloud-core (v1.49.3): Extracting archive
      - Installing google/cloud-translate (v1.15.2): Extracting archive
      - Installing league/html-to-markdown (4.10.0): Extracting archive
      - Installing league/uri-interfaces (2.3.0): Extracting archive
      - Installing league/uri (6.7.2): Extracting archive
      - Installing michelf/php-markdown (1.9.1): Extracting archive
      - Installing nette/neon (v3.3.3): Extracting archive
      - Installing pclzip/pclzip (2.8.2): Extracting archive
      - Installing phpmailer/phpmailer (v6.8.0): Extracting archive
      - Installing psr/simple-cache (1.0.1): Extracting archive
      - Installing ralouphie/mimey (2.1.0): Extracting archive
      - Installing paragonie/random_compat (v9.99.100): Extracting archive
      - Installing ramsey/uuid (3.9.7): Extracting archive
      - Installing symfony/polyfill-php80 (v1.28.0): Extracting archive
      - Installing fig/http-message-util (1.1.5): Extracting archive
      - Installing slim/psr7 (1.6.1): Extracting archive
      - Installing smarty/smarty (v3.1.47): Extracting archive
      - Installing symfony/var-exporter (v5.4.21): Extracting archive
      - Installing symfony/service-contracts (v2.5.2): Extracting archive
      - Installing symfony/polyfill-php73 (v1.27.0): Extracting archive
      - Installing symfony/cache-contracts (v2.5.2): Extracting archive
      - Installing symfony/cache (v5.4.21): Extracting archive
      - Installing symfony/polyfill-intl-normalizer (v1.27.0): Extracting archive
      - Installing symfony/polyfill-intl-grapheme (v1.27.0): Extracting archive
      - Installing symfony/string (v5.4.21): Extracting archive
      - Installing symfony/console (v5.4.32): Extracting archive
      - Installing symfony/css-selector (v4.4.44): Extracting archive
      - Installing symfony/lock (v5.4.21): Extracting archive
      - Installing symfony/polyfill-php72 (v1.27.0): Extracting archive
      - Installing symfony/polyfill-intl-idn (v1.27.0): Extracting archive
      - Installing symfony/polyfill-php74 (v1.27.0): Extracting archive
      - Installing symfony/process (v5.4.28): Extracting archive
      - Installing symfony/yaml (v5.4.21): Extracting archive
      - Installing tburry/pquery (v1.1.1): Extracting archive
      - Installing twig/twig (v2.15.4): Extracting archive
      - Installing vanilla/cloud-interops (v2.1.0): Extracting archive
      - Installing vanilla/garden-container (v4.1.1): Extracting archive
      - Installing vanilla/garden-schema (v1.14): Extracting archive
      - Installing vanilla/garden-jsont (v1.2): Extracting archive
      - Installing vanilla/garden-hydrate (v2.2.1): Extracting archive
      - Installing vanilla/garden-utils (v1.1.2): Extracting archive
      - Installing vanilla/garden-http (v2.8.4): Extracting archive
      - Installing vanilla/garden-sites (v1.5.0): Extracting archive
      - Installing vanilla/htmlawed (v2.2.15): Extracting archive
      - Installing vanilla/js-connect-php (v4.0.1): Extracting archive
      - Installing vanilla/legacy-oauth (v1.0): Extracting archive
      - Installing vanilla/garden-password (v1.2): Extracting archive
      - Installing vanilla/legacy-passwords (v1.0.1): Extracting archive
      - Installing vanilla/nbbc (v2.4.0): Extracting archive
      - Installing vanilla/safecurl (v0.9.3): Extracting archive
      - Installing webmozart/path-util (2.3.0): Extracting archive
      0/83 [>---------------------------]   0%
     18/83 [======>---------------------]  21%
     25/83 [========>-------------------]  30%
     40/83 [=============>--------------]  48%
     46/83 [===============>------------]  55%
     54/83 [==================>---------]  65%
     59/83 [===================>--------]  71%
     74/83 [========================>---]  89%
     78/83 [==========================>-]  93%
     83/83 [============================] 100%
    Package container-interop/container-interop is abandoned, you should avoid using it. Use psr/container instead.
    Package vanilla/legacy-oauth is abandoned, you should avoid using it. No replacement was suggested.
    Package webmozart/path-util is abandoned, you should avoid using it. Use symfony/filesystem instead.
    Generating optimized autoload files
    32 packages you are using are looking for funding.
    Use the `composer fund` command to find out more!
    > Vanilla\Setup\ComposerHelper::postUpdate
    
    Building addon cache
    Addon cache built
    Skipping automatic JS build because VANILLA_BUILD_DISABLE_AUTO_BUILD env variable is set to "true".
    Buildfile: /home/luis/Escritorio/vanilla/build/temp/vanilla/build/build.xml
    
    vanilla > prepare:
    
    
    vanilla > build:
    
     [composer] executing /usr/bin/php8.1 /usr/local/bin/composer  --working-dir=/home/luis/Escritorio/vanilla/build/temp/vanilla install --no-dev --optimize-autoloader
    
    BUILD FAILED
    /home/luis/Escritorio/vanilla/build/temp/vanilla/build/build.xml:25:47: Composer binary not found, path is "/usr/local/bin/composer"
    
    Total time: 0.0441 seconds
    
    
    ==================== Copying & Cleanup ====================
    Build failed. Unable to locate built file at /home/luis/Escritorio/vanilla/build/temp/vanilla/build/vanilla.zip
    Failed to build vanilla-2025.001.zip to:
     /home/luis/Escritorio/vanilla/build/releases/vanilla-2025.001.zip
    


    I think this error is because I am using composer version 2 and I have to downgrade to 1.

  • YEAH! :D

    ==================== Copying & Cleanup ====================
    ✓ Successfully built vanilla-20.zip to:
     /home/luis/Escritorio/vanilla/build/releases/vanilla-20.zip
    


Sign In or Register to comment.