[bug] conan 1.31 ignores case in exports_sources
See original GitHub issueWe are currently migrating from conan 1.22 to conan 1.31. We found, that 1.22 is not ignoring case in exports_sources, but 1.31 is and, thus, breaking our recipies.
Environment Details (include every applicable attribute)
- Operating System+version: osl15.2
- Compiler+version: 7.5
- Conan version: 1.31
- Python version: 3.6
Steps to reproduce (Include if Applicable)
To reproduce, I’ve called conan new ..., added
exports_sources = ["test", "TEST"]
to the recipe and touched those files in the filesystem.
Logs (Executed commands with output) (Include/Attach if Applicable)
Calling conan create with 1.22 results in:
TestExport/1.2.3@user/testing exports_sources: Copied 2 files: test, TEST
ll […]/.conan/data/TestExport/1.2.3/user/testing/export_source/ […] 2. Mär 07:58 test […] 2. Mär 07:58 TEST
and with 1.31 results in:
TestExport/1.2.3@user/testing exports_sources: Copied 2 files: TEST, TEST
ll […]/.conan/data/TestExport/1.2.3/user/testing/export_source/ […] 2. Mär 07:58 TEST
Additional information
I’d assume that this PR is somehow related: https://github.com/conan-io/conan/pull/7704
It changes the default of ignore_case, but export_sources is not adjusted accordingly.
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)

Top Related StackOverflow Question
@memsharded I can’t reproduce the obervation by myself using conan 1.34.1 right now. I’ll have to refer to the person that told me about this possible symlink issue.
Thanks @Da-LiFe for testing and reporting, happy to hear that it is working now and no backports are necessary 😃
Regarding the symlink, is it a regression of this fix? Because in code it seems that that could also be the previous behavior as well, nothing really changed regarding symlinks in https://github.com/conan-io/conan/pull/8585/files, it is basically ensuring that casing do not affect matching. In that case I think we are fine with it.