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

feat!: Prefer symlink property set on Vinyl object over its path #345

Merged
merged 2 commits into from
Jun 11, 2023

Conversation

phated
Copy link
Member

@phated phated commented Jun 11, 2023

Closes #245
Closes #303

This brings the symlink() stream closer to how dest() writes symlink files. The dest() function always expects the file.symlink property was set; however, symlink() exists to create symlinks without setting that property. This causes us to encounter a problem in symlink(), such that if you rename a file, it will create a dangling link.

While we could direct people to use dest() for this behavior, it seems fine to prefer the file.symlink property if it is set.

@phated phated added this to In progress in v5 via automation Jun 11, 2023
@phated phated merged commit 0ac27a2 into master Jun 11, 2023
14 checks passed
@phated phated deleted the phated/prefer-symlink-property branch June 11, 2023 23:49
@phated phated moved this from In progress to Done in v5 Jun 11, 2023
This was referenced Jun 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
v5
  
Done
Development

Successfully merging this pull request may close these issues.

Create symlink with different name than destination Symlink does not consider if a file has been modified
1 participant