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

Adopt doublestar, disable traversing symlinks in globwalk #1275

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 4 commits into from
May 23, 2022

Conversation

gsoltis
Copy link
Contributor

@gsoltis gsoltis commented May 21, 2022

Commits:

  • Copy in doublestar files, point our existing code at them
  • Make them satisfy our linter
  • Remove symlink traversal and make associated test changes

Fixes #1265

Our globwalk when collecting outputs was traversing symlinks. This caused us to copy their pointed-to contents as if the symlink was a directory, and then when copying the link itself, throw an error because it already existed (as a directory...). This in turn would crash all of our file-copying worker goroutines, leaving the main goroutine waiting indefinitely for file copying to complete.

Not included here, but we should potentially make our file-copying goroutines more robust so that at the very least we get a better error message.

@vercel
Copy link

vercel bot commented May 21, 2022

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

Name Status Preview Updated
turbo-site ✅ Ready (Inspect) Visit Preview May 23, 2022 at 4:52PM (UTC)

@gsoltis gsoltis marked this pull request as ready for review May 21, 2022 20:43
Copy link
Contributor

@nathanhammond nathanhammond left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nothing remarkable here. Ship it.

@kodiakhq kodiakhq bot merged commit cfb65cb into main May 23, 2022
@kodiakhq kodiakhq bot deleted the gsoltis/adopt_doublestar branch May 23, 2022 17:01
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.

pnpm/nextjs build hangs if next outputStandalone is used
2 participants