Skip to content

[rush] Build cache does not support symbolic links with relative paths #5486

@chengbapi

Description

@chengbapi

Summary

When the output folder contains a symbolic link, Rush throws an error.

Image

Details

I think this is a good default behavior in most cases, since it helps prevent people from making mistakes.

However, in some cases the symbolic link is a relative path that points to another file within the same repo. Would it make sense to make the symbolic-link check (code linked below) more precise, so that it ignores cases where the relative target resolves to a path inside the repo?

Standard questions

Please answer these questions to help us investigate your issue more quickly:

Question Answer
@microsoft/rush globally installed version? -
rushVersion from rush.json? -
useWorkspaces from rush.json? No
Operating system? All
Would you consider contributing a PR? Yes
Node.js version (node -v)? -

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Needs triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions