Skip to content

Commit 34eadbd

Browse files
committed
fix: use local path for examples composer installation
Signed-off-by: Hendrik Heil <[email protected]>
1 parent c3c40af commit 34eadbd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

update-examples.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
'laravel'
77
];
88

9-
$remote = getenv('GIT_REMOTE') ?: trim(`git config --get remote.origin.url`);
109
$branch = getenv('GIT_BRANCH') ?: trim(`git rev-parse --abbrev-ref HEAD`);
1110
$sha = getenv('GIT_SHA') ?: '';
1211

@@ -19,9 +18,10 @@
1918
if (!empty($sha)) {
2019
$sha = "#$sha";
2120
}
21+
2222
$composer->repositories[] = [
23-
"type" => "vcs",
24-
"url" => $remote,
23+
'type' => 'path',
24+
'url' => '../..',
2525
];
2626
$composer->require->{'dapr/php-sdk'} = "dev-$branch$sha";
2727
file_put_contents(

0 commit comments

Comments
 (0)