mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 12:40:43 +00:00
fix: quiet bundled plugin runtime dep repairs
This commit is contained in:
@@ -1738,7 +1738,7 @@ export function loadOpenClawPlugins(options: PluginLoadOptions = {}): PluginRegi
|
||||
try {
|
||||
const installRoot = resolveBundledRuntimeDependencyInstallRoot(pluginRoot);
|
||||
const retainSpecs = bundledRuntimeDepsRetainSpecsByInstallRoot.get(installRoot) ?? [];
|
||||
const installedSpecs = ensureBundledPluginRuntimeDeps({
|
||||
const depsInstallResult = ensureBundledPluginRuntimeDeps({
|
||||
pluginId: record.id,
|
||||
pluginRoot,
|
||||
env,
|
||||
@@ -1746,15 +1746,15 @@ export function loadOpenClawPlugins(options: PluginLoadOptions = {}): PluginRegi
|
||||
retainSpecs,
|
||||
installDeps: options.bundledRuntimeDepsInstaller,
|
||||
});
|
||||
if (installedSpecs.length > 0) {
|
||||
if (depsInstallResult.installedSpecs.length > 0) {
|
||||
bundledRuntimeDepsRetainSpecsByInstallRoot.set(
|
||||
installRoot,
|
||||
[...new Set([...retainSpecs, ...installedSpecs])].toSorted((left, right) =>
|
||||
left.localeCompare(right),
|
||||
[...new Set([...retainSpecs, ...depsInstallResult.retainSpecs])].toSorted(
|
||||
(left, right) => left.localeCompare(right),
|
||||
),
|
||||
);
|
||||
logger.info(
|
||||
`[plugins] ${record.id} installed bundled runtime deps: ${installedSpecs.join(", ")}`,
|
||||
`[plugins] ${record.id} installed bundled runtime deps: ${depsInstallResult.installedSpecs.join(", ")}`,
|
||||
);
|
||||
}
|
||||
} catch (error) {
|
||||
|
||||
Reference in New Issue
Block a user