这是indexloc提供的服务,不要输入任何密码
Skip to content

Unify symlink handling in http cache #1071

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 19, 2022
Merged

Unify symlink handling in http cache #1071

merged 3 commits into from
Apr 19, 2022

Conversation

gsoltis
Copy link
Contributor

@gsoltis gsoltis commented Apr 18, 2022

  • Symlink-from-tar handling is now in one place
  • storeFile now returns 0 values in all error cases
  • name -> repoRelativePath to be a little clearer for upcoming switch to fs.AbsolutePath

Not included is better sorting of broken symlinks. In pathological cases, symlinks pointing to symlinks can still fail to get properly recreated on windows. OSX and linux allow for creating the link target after the link itself.

@vercel
Copy link

vercel bot commented Apr 18, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
turbo-site ✅ Ready (Inspect) Visit Preview Apr 19, 2022 at 4:37PM (UTC)

@kodiakhq kodiakhq bot merged commit 62668ff into main Apr 19, 2022
@kodiakhq kodiakhq bot deleted the gsoltis/http_symlink branch April 19, 2022 20:20
@nathanhammond
Copy link
Contributor

Tagging this into #1369

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants