mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 14:20:44 +00:00
test(plugins): cover pinned npm installs
This commit is contained in:
@@ -128,6 +128,13 @@ visible plugin without importing runtime code or repairing dependencies.
|
||||
See [Plugin dependency resolution](/plugins/dependency-resolution) for the
|
||||
install-time lifecycle.
|
||||
|
||||
For npm installs, mutable selectors such as `latest` or a dist-tag are resolved
|
||||
before installation and then pinned to the exact verified version in OpenClaw's
|
||||
managed npm root. After npm finishes, OpenClaw verifies the installed
|
||||
`package-lock.json` entry still matches the resolved version and integrity. If
|
||||
npm writes different package metadata, the install fails and the managed package
|
||||
is rolled back instead of accepting a different plugin artifact.
|
||||
|
||||
Source checkouts are pnpm workspaces. If you clone OpenClaw to hack on bundled
|
||||
plugins, run `pnpm install`; OpenClaw then loads bundled plugins from
|
||||
`extensions/<id>` so edits and package-local dependencies are used directly.
|
||||
|
||||
Reference in New Issue
Block a user