Update getBinaryExtractConfig to handle 'hosted' cache extraction path

This commit is contained in:
crazywhalecc
2026-04-09 10:07:09 +08:00
parent 2f260e4d09
commit 9b8e0c794a

View File

@@ -347,7 +347,11 @@ class Artifact
public function getBinaryExtractConfig(array $cache_info = []): array
{
if (is_string($cache_info['extract'] ?? null)) {
return ['path' => $this->replaceExtractPathVariables($cache_info['extract']), 'mode' => 'standard'];
$cache_extract = $cache_info['extract'];
if ($cache_extract === 'hosted') {
return ['path' => BUILD_ROOT_PATH, 'mode' => 'standard'];
}
return ['path' => $this->replaceExtractPathVariables($cache_extract), 'mode' => 'standard'];
}
$platform = SystemTarget::getCurrentPlatformString();