Skip to content

Commit ec99e4e

Browse files
committed
Fix usage of removed component version entry
1 parent ca74c3f commit ec99e4e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

bin/build

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,10 @@ function checkout($dir, $gitUrl, $tag)
3333
run('git checkout -f ' . $tag, $dir);
3434
}
3535

36-
function component(Symfony\Component\Console\Output\ConsoleOutput $output, $componentsDir, $name, $gitUrl, array $versions)
36+
function component(Symfony\Component\Console\Output\ConsoleOutput $output, $componentsDir, $name, $gitUrl, string $latestVersion)
3737
{
3838
$componentDir = $componentsDir . DIRECTORY_SEPARATOR . $name;
3939

40-
$latestVersion = reset($versions);
41-
4240
$output->writeln('Latest version: ' . $latestVersion);
4341

4442
checkout($componentDir, $gitUrl, $latestVersion);
@@ -63,7 +61,7 @@ if (!$input->hasParameterOption('--no-component-update')) {
6361
$componentsDir,
6462
$component['name'],
6563
$component['git_url'],
66-
$component['versions']
64+
$component['releases'][0]['tag']
6765
);
6866

6967
$output->writeln('<info>Done.</info>');

0 commit comments

Comments
 (0)