-
Notifications
You must be signed in to change notification settings - Fork 23
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
Add warning about using composer packages installed with symlink #64
Comments
I agree entirely. Until recently, there were no changes to any files (except explicit opt-in for deleting some files). The current default behavior does not edit any files – it copies and then changes the new files. Since last month, March, there is a new configuration that can result in, as you say, editing files that should not. I'll certainly add a warning. I'll think about how to add an explicit opt-in setting too. |
The Is it possible that it removes / unlinks the folder in a way that only removes the symlink; but the linked package stays intact? |
Behaviour as of v0.16.0 is to Still, I'll take a proper look at that PR when I can and will add something to the README if we need to. I learned recently, you can use I'll output an error message informing the user of that option if they try to set |
Thanks. That is my go to solution for now, but I forget I need to do that every once in a while 😭. So then I'm testing, changing code, symlinking and bam: I loose everything, because the original folder gets cleared out. Only then I remember; and need to start over with mirroring. So the notification sounds great; but it should be a confirmation before it goes on today prevent this deleting. |
Your test case was great. That was the intended behaviour after the commits I mentioned earlier, but my code wasn't working as intended. Then your code did work! Edit: reopening because I think the notice would still be helpful to add. |
Cool! Thanks for the release; this will help greatly. Speaking of tests. I'm more than willing to set up some tests to ensure certain behaviour when I have some extra time. Do you have any cases you wish you had tested? |
Quite a few operations will change or delete files. When packages are installed by symlink these operations will break other projects also using the packages.
It would be great to have a warning before any dangerous operations are performed, and a warning in the docs.
The text was updated successfully, but these errors were encountered: