Skip to content

Unable to restore symlinks from cache on Windows #1043

Description

@jonkoops

We noticed that since version 3.2.1 of actions/cache that our CI jobs have started failing. This seems to be caused by the inability to restore symbolic links, resulting in the following output in our failing job:

/usr/bin/tar: node_modules/.bin/acorn: Cannot create symlink to '../acorn/bin/acorn': No such file or directory
/usr/bin/tar: node_modules/.bin/pidtree: Cannot create symlink to '../pidtree/bin/pidtree.js': No such file or directory
/usr/bin/tar: Exiting with failure status due to previous errors
Warning: Failed to restore: "C:\Program failed with error: The process 'C:\Program Files\Git\usr\bin\tar.exe' failed with exit code 2

Reverting back to version 3.2.0 seems to resolve the issue, allowing the CI to pass again.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions