-
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
Detecting / deleting obsolete files not working #775
Comments
Issue seems to be coming from the file crowdin-cli/src/main/java/com/crowdin/cli/commands/functionality/ObsoleteSourcesUtils.java Line 32 in 2d4d0f0
|
Hi @anbraten, thanks for your input! I suppose the |
Hi @andrii-bodnar, |
CLI will always set the export pattern during the sources upload, even with If the |
The file you can see in the previous screenshot I've uploaded using the cli first and then debugged a second upload where that file then has |
@anbraten could you please provide a test project (the |
@andrii-bodnar Sure, here is a pretty basic sample: https://github.com/anbraten/repro-crowdin-delete-obsolete. Added a readme with some steps what I've done. |
@anbraten thank you, I was able to reproduce the issue. Could you please take a look at my comment in the PR and check the failed CI? It looks like the new test case is not adapted to work in the Windows environment. |
Describe the bug
Delete obsolete is not detecting deleted / non-existing file.
To Reproduce
Steps to reproduce the behavior:
tree test/
:npx @crowdin/cli upload sources --token ... --project-id ... --delete-obsolete --no-auto-update
Outputs:
test/en/support.md
=>test/en/help.md
npx @crowdin/cli upload sources --token ... --project-id ... --delete-obsolete --no-auto-update
Outputs:
Expected behavior
I expect the file
test/en/support.md
to be detected as obsolete and deleted on Crowdin afterwards as it does not exists locally anymore.Environment:
The text was updated successfully, but these errors were encountered: