mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 18:30:44 +00:00
fix: harden source checkout plugin dependency handling
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 { resolveSourceCheckoutDependencyDiagnostic } from "./bundled-dir.js";
|
||||
import { resolvePackagedBundledLoadPathAlias } from "./bundled-load-path-aliases.js";
|
||||
import { listBundledSourceOverlayDirs } from "./bundled-source-overlays.js";
|
||||
import type { PluginBundleFormat, PluginDiagnostic, PluginFormat } from "./manifest-types.js";
|
||||
@@ -971,6 +972,14 @@ export function discoverOpenClawPlugins(params: {
|
||||
"using bind-mounted bundled plugin source overlay; this source overrides the packaged dist bundle for the same plugin id",
|
||||
});
|
||||
}
|
||||
const sourceCheckoutDependencyDiagnostic = resolveSourceCheckoutDependencyDiagnostic(env);
|
||||
if (sourceCheckoutDependencyDiagnostic) {
|
||||
result.diagnostics.push({
|
||||
level: "warn",
|
||||
source: sourceCheckoutDependencyDiagnostic.source,
|
||||
message: sourceCheckoutDependencyDiagnostic.message,
|
||||
});
|
||||
}
|
||||
if (roots.stock) {
|
||||
discoverInDirectory({
|
||||
dir: roots.stock,
|
||||
|
||||
Reference in New Issue
Block a user