question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cache restore failed with symlinks in Windows

See original GitHub issue

I’m working with a monorepo containing several npm packages. The root npm package.json references children npm packages using relative path. When npm ci / npm i is executed, a symlink is created for each child package to the root node_modules folder.

I cached the root node_modules folder.

The first workflow run is good, here are the steps:

  1. Cache restore miss
  2. Run npm ci
  3. Run npm build
  4. Success
  5. Cache save

The second run is no good:

  1. Cache restore hit
  2. Skip run npm ci
  3. Run npm build

This is only happening in windows-latest environment. I tried to reproduce the issue locally and found out that tar did not recreate the symlinks.

Any guidance on how to proceed?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
mzabaluevcommented, May 26, 2020

@ordian and possibly others with the same symptoms:

Here is a repro.

I have no idea about the symlink issues discussed here, but your issue looks like #198 and it has a solution.

0reactions
github-actions[bot]commented, May 17, 2022

This issue was closed because it has been inactive for 5 days since being marked as stale.

Read more comments on GitHub >

github_iconTop Results From Across the Web

The following package(s) have broken symlinks into the cache
As I played a lot with the cache, I got this message: The following package(s) have broken symlinks into the cache: .
Read more >
Git symbolic links in Windows - Stack Overflow
Ignore these Windows symbolic links by adding an entry into file .git/info/exclude. I have not implemented this, but I believe this is a...
Read more >
How to restore a symlink repository? - Duplicacy Forum
All my backups use the symlink-repository pattern, and on windows a symlink can only be created with admin ... Restore fails due to...
Read more >
How does Windows 7 Backup treat symbolic links?
Backup actually resolves the symbolic link and takes a copy of the data in the ... answer is this one: Perform a backup,...
Read more >
Symbolic Link, Reparse Point, and Unsupported file type ...
Symptoms. When backing up a source which contains reparse points you may receive an error: Unsupported file-type skipped. Please see the unsupported log...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found