mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-27 17:55:58 +00:00
fix(docker): parse peer-suffixed lockfile packages
This commit is contained in:
@@ -25,7 +25,7 @@ function packageSpecFromLockfileKey(key) {
|
||||
if (typeof key !== "string") {
|
||||
return undefined;
|
||||
}
|
||||
const normalizedKey = key.startsWith("/") ? key.slice(1) : key;
|
||||
const normalizedKey = (key.startsWith("/") ? key.slice(1) : key).replace(/\(.+\)$/, "");
|
||||
const separator = normalizedKey.lastIndexOf("@");
|
||||
if (separator <= 0) {
|
||||
return undefined;
|
||||
|
||||
Reference in New Issue
Block a user