Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-38825

Installing composer, wrong URL

XMLWordPrintable

    • MOODLE_25_STABLE
    • MOODLE_25_STABLE
    • Hide

      1) Uninstall composer completely (or use a site/user/installation without it)

      2) Define $CFG->behat_prefix and $CFG->behat_dataroot to be valid.

      3) Run "php admin/tool/behat/cli/init.php" from the dirrrot directory.

      4) TEST: The first step performed by that script is to download composer and install it. You should see some curl progress output and then the process continues with "All settings correct for using Composer". It doesn't matter if there are other problems later. This only fixes the download/installation of composer itself.

      Note: Without the patch the scripts ends with "Could not open input file: composer.phar".

      That's all...ciao

      Show
      1) Uninstall composer completely (or use a site/user/installation without it) 2) Define $CFG->behat_prefix and $CFG->behat_dataroot to be valid. 3) Run "php admin/tool/behat/cli/init.php" from the dirrrot directory. 4) TEST: The first step performed by that script is to download composer and install it. You should see some curl progress output and then the process continues with "All settings correct for using Composer". It doesn't matter if there are other problems later. This only fixes the download/installation of composer itself. Note: Without the patch the scripts ends with "Could not open input file: composer.phar". That's all...ciao

      While testing / trying MDL-38817 this was discovered.

      It's the first time I was going to install behat in my dev environment following the instructions @ http://docs.moodle.org/dev/Acceptance_testing#Installation , so I executed:

      php admin/tool/behat/cli/init.php
      

      At the curl operation ended with a 404 error and the installation process of composer ended with error.

      Looking at the Docs, it seems that the URL we are fetching is incorrect, it should be:

       http://getcomposer.org/installer
      

      instead of:

      curl http://getcomposer.org/install
      

      So this is, simply, about to change that and verify that the behat install, does the composer installation properly.

      Ciao

            stronk7 Eloy Lafuente (stronk7)
            stronk7 Eloy Lafuente (stronk7)
            David Monllaó David Monllaó
            Dan Poltawski Dan Poltawski
            Dan Poltawski Dan Poltawski
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.