Skip to content
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

handle directory symlinks in RecursivelyCopyOrLinkfile() #3330

Merged
merged 1 commit into from
Jan 16, 2025

Conversation

Tatskaari
Copy link
Member

@Tatskaari Tatskaari commented Jan 16, 2025

This would blow up as we assume the path is a file if it's not a directory here. This then opens the "file" here, resolving the symlink. If that symlink was a symlink to a directory, we then end up trying to io.Copy() it here, which results in a copy_file_range: is a directory error.

@Tatskaari Tatskaari merged commit 7387677 into thought-machine:master Jan 16, 2025
10 of 12 checks passed
toastwaffle pushed a commit to toastwaffle/please that referenced this pull request Jan 17, 2025
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.

2 participants