mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 14:00:47 +00:00
fix(plugins): ignore bundled load path aliases
This commit is contained in:
@@ -8,6 +8,7 @@ import {
|
||||
} from "../shared/string-coerce.js";
|
||||
import { resolveUserPath } from "../utils.js";
|
||||
import { detectBundleManifestFormat, loadBundleManifest } from "./bundle-manifest.js";
|
||||
import { resolvePackagedBundledLoadPathAlias } from "./bundled-load-path-aliases.js";
|
||||
import type { PluginBundleFormat, PluginDiagnostic, PluginFormat } from "./manifest-types.js";
|
||||
import {
|
||||
DEFAULT_PLUGIN_ENTRY_CANDIDATES,
|
||||
@@ -1145,6 +1146,18 @@ export function discoverOpenClawPlugins(params: {
|
||||
if (!trimmed) {
|
||||
continue;
|
||||
}
|
||||
const bundledAlias = resolvePackagedBundledLoadPathAlias({
|
||||
bundledRoot: roots.stock,
|
||||
loadPath: resolveUserPath(trimmed, env),
|
||||
});
|
||||
if (bundledAlias) {
|
||||
result.diagnostics.push({
|
||||
level: "warn",
|
||||
source: trimmed,
|
||||
message: `ignored plugins.load.paths entry that points at OpenClaw's ${bundledAlias.kind} bundled plugin directory; remove this redundant path or run openclaw doctor --fix`,
|
||||
});
|
||||
continue;
|
||||
}
|
||||
discoverFromPath({
|
||||
rawPath: trimmed,
|
||||
origin: "config",
|
||||
|
||||
Reference in New Issue
Block a user