-
Notifications
You must be signed in to change notification settings - Fork 96
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
download sources
doesn't handle configuration files with **
wildcards in source
when dest
is configured
#519
Comments
After testing the new version (3.11) it doesn't behave as expected (ant style pattern matcher ?) in the following use case: "base_path": "."
"preserve_hierarchy": true
"files": [
{
"source": "folder1/folder2/**/messages.properties",
"dest" : "/folder_on_crowdin/%original_path%/%file_name%.properties",
"translation": "folder1/folder2/**/%file_name%_%two_letters_code%.properties"
},
{
"source": "folder1/folder2/**/plugin.properties",
"dest" : "/folder_on_crowdin/%original_path%/%file_name%.properties",
"translation": "folder1/folder2/**/%file_name%_%two_letters_code%.properties"
}
] When downloading sources, a |
@rbioteau I just tested your configuration and can confirm that there is an issue with the sources download in this case. As a workaround, I would recommend adjusting your configuration to a single file group: "base_path": "."
"preserve_hierarchy": true
"files": [
{
"source": "folder1/folder2/**/*.properties",
"dest" : "/folder_on_crowdin/%original_path%/%file_name%.properties",
"translation": "folder1/folder2/**/%file_name%_%two_letters_code%.properties"
}
] |
@andrii-bodnar Thanks for the tips ! However, it won't work for my use case as it will include all sort of properties files like localized |
Describe the bug
When using a
**
wildcardis used in asource
property of afile
object in the configuration in addition to adest
property, thedownload source
command does not find source files and display the following warning message:To Reproduce
Steps to reproduce the behavior:
Expected behavior
Source files should be found and downloaded.
Environment:
Additional context
I found a painful workaround by removing the
**
wildcard and explicit all my path in the configuration file.In my use case, it requires having 90+
file
objects in my configuration.The text was updated successfully, but these errors were encountered: