Fix windows extracting with curl typo, ignore traits in package

This commit is contained in:
crazywhalecc 2025-12-11 13:47:32 +08:00
parent fe0b983f6c
commit 4bbe56dd9f
3 changed files with 5 additions and 2 deletions

View File

@ -190,7 +190,7 @@ class ExceptionHandler
$line = str_pad($v, strlen($v) + $indent_space, ' ', STR_PAD_LEFT);
fwrite($spc_log, strip_ansi_colors($line) . PHP_EOL);
if ($output_log) {
InteractiveTerm::plain(ConsoleColor::red($line) . '');
InteractiveTerm::plain(ConsoleColor::red($line) . '', 'error');
}
}
}

View File

@ -186,7 +186,7 @@ class DefaultShell extends Shell
$extname = FileSystem::extname($archive_path);
match ($extname) {
'tar' => $this->executeTarExtract($archive_path, $target_path, 'none'),
'gz', 'tgz', 'xz', 'txz', 'bz2' => $run("{$_7z} x -so {$archive_arg} | tar tar -f - -x -C {$target_arg} --strip-components 1"),
'gz', 'tgz', 'xz', 'txz', 'bz2' => $run("{$_7z} x -so {$archive_arg} | tar -f - -x -C {$target_arg} --strip-components 1"),
default => $run("{$_7z} x {$archive_arg} -o{$target_arg} -y{$mute}"),
};

View File

@ -267,6 +267,9 @@ class FileSystem
if ($auto_require && !class_exists($class_name, false)) {
require_once $file_path;
}
if (class_exists($class_name, false) === false) {
continue;
}
if (is_string($return_path_value)) {
$classes[$class_name] = $return_path_value . '/' . $v;