Skip to content

Commit 37c434d

Browse files
Composer.json array fix (#115)
* possible-composer-fix * another version * rewriting earlier array * added verbosity * added more verbosity * checking type before modification * checking composer require fix * yet another try * yet another new approach * approach with adding name * putting focus on name * another another approach * added repo add * removed symf from commadn * implementing composer repositort add fix * removed space
1 parent 5c59fb6 commit 37c434d

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

bin/4.6.x-dev/prepare_project_edition.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,7 @@ if [[ "$PROJECT_EDITION" != "oss" ]]; then
8787

8888
done
8989

90-
jq --argjson ibexaPackages "$IBEXA_PACKAGES" '.repositories.ibexa.exclude = $ibexaPackages' composer.json > composer.json.new
91-
mv composer.json.new composer.json
90+
composer repository add ibexa "{\"type\": \"composer\", \"url\":\"https://updates.ibexa.co\", \"exclude\": $IBEXA_PACKAGES}"
9291
fi
9392

9493
echo "> Make composer use tested dependency"

bin/5.0.x-dev/prepare_project_edition.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,7 @@ if [[ "$PROJECT_EDITION" != "oss" ]]; then
8787

8888
done
8989

90-
jq --argjson ibexaPackages "$IBEXA_PACKAGES" '.repositories.ibexa.exclude = $ibexaPackages' composer.json > composer.json.new
91-
mv composer.json.new composer.json
90+
composer repository add ibexa "{\"type\": \"composer\", \"url\":\"https://updates.ibexa.co\", \"exclude\": $IBEXA_PACKAGES}"
9291
fi
9392

9493
echo "> Make composer use tested dependency"

bin/^3.3.x-dev/prepare_project_edition.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,7 @@ if [[ "$PROJECT_EDITION" != "oss" ]]; then
8686
IBEXA_PACKAGES=$(echo "$IBEXA_PACKAGES" | jq --argjson editionPackages "$EDITION_PACKAGES" '. + $editionPackages')
8787

8888
done
89-
jq --argjson ibexaPackages "$IBEXA_PACKAGES" '.repositories.ibexa.exclude = $ibexaPackages' composer.json > composer.json.new
90-
mv composer.json.new composer.json
89+
composer repository add ibexa "{\"type\": \"composer\", \"url\":\"https://updates.ibexa.co\", \"exclude\": $IBEXA_PACKAGES}"
9190
fi
9291

9392
echo "> Make composer use tested dependency"

0 commit comments

Comments
 (0)