File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -63,13 +63,13 @@ if [ "$(printf '%s\n' "$PHP_VERSION" "8.2" | sort -V | head -n1)" = "8.2" ] && [
6363 export COMPOSER=composer.gte8.2.json
6464fi
6565echo " Using composer config: $COMPOSER "
66- composer install --prefer-dist
66+ composer install --prefer-dist || composer install --prefer-source
6767
6868# Install OTel SDK for PHP 8.1+ (open-telemetry/context requires PHP ^8.1)
6969# DDTrace hooks into the SDK when DD_TRACE_OTEL_ENABLED=true, bridging OTel context
7070# with DDTrace context so that Baggage::getCurrent() and activate() work correctly.
7171if [[ " ${PHP_MAJOR_VERSION} " -ge 8 ]] && [[ " ${PHP_MINOR_VERSION} " -ge 1 ]]; then
72- composer require " open-telemetry/sdk:^1.0.0" --prefer-dist --no-interaction
72+ composer require " open-telemetry/sdk:^1.0.0" --prefer-dist --no-interaction || composer require " open-telemetry/sdk:^1.0.0 " --prefer-source --no-interaction
7373fi
7474
7575# Set proper permissions
Original file line number Diff line number Diff line change 2525 },
2626 "config" : {
2727 "optimize-autoloader" : true ,
28- "preferred-install" : " dist" ,
2928 "sort-packages" : true ,
3029 "allow-plugins" : {
3130 "pestphp/pest-plugin" : true ,
You can’t perform that action at this time.
0 commit comments