Skip to content
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

Fix/export case insensitive #8585

Merged
merged 7 commits into from
Mar 9, 2021

Conversation

memsharded
Copy link
Member

@memsharded memsharded commented Mar 2, 2021

Changelog: Fix: Restoring the behavior that exports and exports_sources were case sensitive by default.
Docs: Omit

Close #8583

It is possible that this might be breaking, lets see.
#tags: slow

@memsharded memsharded added this to the 1.35 milestone Mar 2, 2021
Copy link
Member

@uilianries uilianries left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@uilianries
Copy link
Member

The test error is not related to this PR I think:

conans/test/functional/generators/components/cmake_find_package_multi_test.py:946: AssertionError

@memsharded memsharded requested a review from jgsogo March 2, 2021 20:46
@memsharded memsharded marked this pull request as ready for review March 2, 2021 20:46
@@ -145,6 +145,8 @@ def _filter_files(src, pattern, links, excludes, ignore_case, excluded_folders):
relative_path = os.path.relpath(root, src)
compare_relative_path = relative_path.lower() if ignore_case else relative_path
for exclude in excludes:
if ignore_case:
exclude = exclude.lower()
Copy link
Member

@uilianries uilianries Mar 2, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

at line 121 it does the same.

Suggested change
exclude = exclude.lower()
exclude = exclude.lower()

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good point. But need to remove the 2 lines.

Copy link
Contributor

@jgsogo jgsogo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The user reporting (#8583) was upgrading to Conan 1.31. Do we want to backport this bugfix to previous releases?

@memsharded memsharded merged commit ffd2f3a into conan-io:develop Mar 9, 2021
@memsharded memsharded deleted the fix/export_case_insensitive branch March 9, 2021 10:40
czoido pushed a commit to czoido/conan that referenced this pull request Mar 9, 2021
* export was case sensitive

* add more checks

* fixing tests

* fixing more tests

* removed repeated code

* removed repeated code
czoido added a commit that referenced this pull request Mar 9, 2021
* export was case sensitive

* add more checks

* fixing tests

* fixing more tests

* removed repeated code

* removed repeated code

Co-authored-by: James <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[bug] conan 1.31 ignores case in exports_sources
3 participants