-
-
Notifications
You must be signed in to change notification settings - Fork 174
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
Allow slashes in diff paths with looks-same #276
Allow slashes in diff paths with looks-same #276
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think a better approach would be to write the diff to a temp dir and then move it if there is a diff. Otherwise we'd end up with a bunch of empty directories.
Based on the comment above #229 (comment) by @oblador I would say this is not the desired behavior
|
@techeverri I don’t think that comment applies in this case. There is an |
You're right @kurttomlinson 👍 |
It would be very useful to have some kind of automated test for this fix 🤔 I'm thinking of an example project configured to have custom |
BTW because of the way GitHub Actions work builds won't run when they come from forked repos (this pull request for example) |
@techeverri I've added a spec to cover this change. |
@techeverri Sorry to be a bother, but is there something I could do to help you review and merge this PR? 🙏 |
@kurttomlinson I've fixed so that tests run properly now 👍 |
Thanks for the fix and the merge @oblador ! 🎉 |
Thanks for the PR! I was having similar thoughts actually :-D |
This PR is a partial fix for #229. It creates the output diff folder immediately before asking looks-same to create a diff file. Because it only creates the folder when a diff file is going to be created, it does not create any empty folders.
This patch only applies to the looks-same differ. The Graphics Magic differ creates diff files even when there are no differences, so it needs to be fixed in a different way.