mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-15 03:01:02 +00:00
fix: close landing test gaps
This commit is contained in:
@@ -186,12 +186,13 @@ async function inspectNodeModulesSymlinkTarget(params: {
|
||||
|
||||
const resolvedTargetStats = await fs.stat(resolvedTargetPath);
|
||||
const resolvedTargetRelativePath = path.relative(params.rootRealPath, resolvedTargetPath);
|
||||
const blockedDirectoryFinding = findBlockedPackageDirectoryInPath({
|
||||
pathRelativeToRoot: resolvedTargetRelativePath,
|
||||
});
|
||||
return {
|
||||
blockedDirectoryFinding: resolvedTargetStats.isDirectory()
|
||||
? findBlockedPackageDirectoryInPath({
|
||||
pathRelativeToRoot: resolvedTargetRelativePath,
|
||||
})
|
||||
: undefined,
|
||||
// File symlinks can point into a blocked package directory, for example
|
||||
// vendor/node_modules/safe-name -> ../plain-crypto-js/dist/index.js.
|
||||
blockedDirectoryFinding,
|
||||
blockedFileFinding: resolvedTargetStats.isFile()
|
||||
? findBlockedPackageFileAliasInPath({
|
||||
pathRelativeToRoot: resolvedTargetRelativePath,
|
||||
|
||||
Reference in New Issue
Block a user