If symlinks are removed after their target file during a deploy, the deploy fails
See original GitHub issueFor example, I had removed the npm package acorn from a website and attempted to deploy.
The node_modules/acorn/ folder was removed successfully, but the node_module/.bin/acorn symlink, which points to …/acorn/bin/acorn (i.e. node_modules/acorn/bin/acorn) cannot be removed, with the error: Error: ENOENT: no such file or directory, stat '/home/site/wwwroot/stripe-node/node_modules/.bin/acorn'
(presumably because the deploy script attempts to follow the symlink rather than checking the link itself).
Workaround was to manually remove the symlink.
Issue Analytics
- State:
- Created 2 years ago
- Comments:9
Top Results From Across the Web
The create operation stopped after reaching a symbolic link
I recently deployed symlinks in a DFS file share deployment (symlink /D). I started receiving "The create operation stopped after reaching a ...
Read more >Deploy does not follow symlinks #1809 - netlify/cli - GitHub
When running deploy, deploy only detect one file, public as symbolic link and not following the symbolic link. After moving the file to...
Read more >955379 – systemctl enable fails for symlinks in /etc/systemd ...
If I create a custom service file at, say, `/etc/systemd/system/xyz.service` and then run `systemctl enable xyz.service`, it fails with the error: "Failed ......
Read more >Storage in laravel says symlink - no such file - Stack Overflow
This problem comes when laravel project is moved/copied to some other folder. The storage link is still there thus causing the exception ...
Read more >topic 104.6: Create and change hard and symbolic links
Symlinks do not prevent a file from being deleted. If the target file is moved or deleted, then the symlink will be broken....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@mcdurdin I will close it then. Feel free to re-open it if you come across the issue again.
This issue is idle because it has been open for 14 days with no activity.