-
Notifications
You must be signed in to change notification settings - Fork 99
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
--delete-obsolete
not working correctly when including /**/
in source pattern
#790
Comments
Thanks for reporting this! @anbraten what do you think, could it be because of the export pattern comparison? |
I did a quick test using |
Created a repro branch for this issue: https://github.com/anbraten/repro-crowdin-delete-obsolete/tree/test2 With that test I get a setting for @finebel Are you sure this worked with a version previously to |
@anbraten No, I started using the Crowdin CLI tools with version 3.19.0 and it didn't work from the beginning (see https://community.crowdin.com/t/cli-delete-obsolete-has-no-effect-when-uploading-source-files/7455 for reference). I have thought that the issue have been resolved with #776 since it reads very similar. But apparently it's a different bug. |
Thanks. Good to know I haven't introduced that bug and my assumption it was there before was right. @andrii-bodnar Which function could we use to check if a pattern matches another path, so we can check if:
match? |
@anbraten checked the What happens in the current case is that the Maybe we can also use the |
Started to give the |
When including
/**/
in the source pattern (crowdin.yml
) deleted files aren't detected anymore.Setup
crowdin.yml
file:Project structure:
(I don't added any translations, since that's not relevant for the issue)
To Reproduce
1. Upload sources
2. Delete a file
rm someFeature/sources/file1.strings
3. Upload sources again
In Crowdin:
Locally:
Expected
The locally deleted
file1.strings
is removed from Crowdin and the CLI output reflects the removal offile1.strings
.Additional information
I couldn't reproduce the issue without the
/**/
pattern.Since #775 also used theIn https://github.com/anbraten/repro-crowdin-delete-obsolete/blob/main/crowdin.yml#L6 @anbraten doesn't use/**/
pattern, I'm wondering whether there is some other difference I haven't seen so far./**/
(only in the issue description/**/
is used).When using branches, the issue appears only for existing branches. Meaning that if I run
after step 3 from above, the
file1.strings
is successfully deleted forsomeBranch
from Crowdin.However, if I delete another file (
rm someFeature/sources/file2.strings
) and runningagain,
file2.strings
is still present insomeBranch
on Crowdin.Environment
The text was updated successfully, but these errors were encountered: