Skip to content

Commit f445ff0

Browse files
author
arp
committed
fixed the makeComposerLocal script
1 parent 034a1d5 commit f445ff0

File tree

3 files changed

+12
-16
lines changed

3 files changed

+12
-16
lines changed

.github/workflows/deploy.yml

Lines changed: 0 additions & 11 deletions
This file was deleted.

.github/workflows/test_dependancies.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# test for breaking changes on the different bundle projects
2+
#todo: verify this always works
23

34
name: "Test dependancies"
45

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,23 @@
11
#!/bin/env php
22
<?php
33

4-
$file = $argv[1];
4+
$composerBundlePath = $argv[1];
55

6-
$composer = json_decode(file_get_contents($file), true);
6+
//fetch the dev-master alias from the local graphqlite composer
7+
$composerGraphqlite = json_decode(file_get_contents(__DIR__.'/copy/composer.json'), true);
78

8-
$composer['repositories'] = [
9+
$masterAlias = $composerGraphqlite['extra']['branch-alias']['dev-master'];
10+
11+
//edit the bundle composer to use the local graphqlite
12+
$composerBundle = json_decode(file_get_contents($composerBundlePath), true);
13+
14+
$composerBundle['repositories'] = [
915
[
1016
'type' => 'path',
1117
'url' => '../copy/'
1218
]
1319
];
1420

15-
$composer['require']['thecodingmachine/graphqlite'] = '4.0.x-dev';
21+
$composerBundle['require']['thecodingmachine/graphqlite'] = $masterAlias;
1622

17-
file_put_contents($file, json_encode($composer));
23+
file_put_contents($composerBundlePath, json_encode($composerBundle));

0 commit comments

Comments
 (0)