Skip to content

Commit c70e9d4

Browse files
committed
Clear Composer cache before counting installed packages in Issues metric
1 parent ab71ea8 commit c70e9d4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/Nova/Metrics/Issues.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ public function calculate(NovaRequest $request): ValueResult
3636
$value = $process->getOutput();
3737
$data = json_decode($value, true);
3838
$count = count($data['installed'] ?? []);
39+
$process = Process::fromShellCommandline("$composer clear-cache", base_path(), ['COMPOSER_HOME' => $home]);
40+
$process->run();
3941
} else {
4042
//
4143
$organization = config('app.sentry_organization');

0 commit comments

Comments
 (0)