diff --git a/Makefile b/Makefile index 3ebd6ae8c3..a6033375c9 100644 --- a/Makefile +++ b/Makefile @@ -977,7 +977,7 @@ define run_composer_with_retry done \ mkdir -p /tmp/artifacts - $(COMPOSER) --working-dir=$1 show -f json | grep -o '"name": "[^"]*\|"version": "[^"]*' | paste -d';' - - | sed 's/"name": //; s/"version": //' | tr -d '"' >> "/tmp/artifacts/web_versions.csv" + $(COMPOSER) --working-dir=$1 show -f json -D | grep -o '"name": "[^"]*\|"version": "[^"]*' | paste -d';' - - | sed 's/"name": //; s/"version": //' | tr -d '"' >> "/tmp/artifacts/web_versions.csv" endef define run_tests_without_coverage diff --git a/tests/Common/IntegrationTestCase.php b/tests/Common/IntegrationTestCase.php index d5e1f24796..8499833c91 100644 --- a/tests/Common/IntegrationTestCase.php +++ b/tests/Common/IntegrationTestCase.php @@ -39,7 +39,7 @@ public static function ddSetUpBeforeClass() file_put_contents($artifactsDir . "/extension_versions.csv", $csv, FILE_APPEND); $csv = ''; - $output = shell_exec('DD_TRACE_ENABLED=0 composer show -f json -D'); + $output = shell_exec('DD_TRACE_ENABLED=0 composer --working-dir=./tests show -f json'); $data = json_decode($output, true); foreach ($data['installed'] as $package) {