question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[bug] conan 1.31 ignores case in exports_sources

See original GitHub issue

We 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:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Da-LiFecommented, Mar 12, 2021

Regarding the symlink, is it a regression of this fix?

@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.

0reactions
memshardedcommented, Mar 12, 2021

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

conan export-pkg — conan 1.53.0 documentation
Exports a recipe, then creates a package from local source and build folders. If '–package-folder' is provided it will copy the files from...
Read more >
Case sensitivity issues with Conan packages on Windows
You are right, we are aware of this issue and we try to limit when a user exports a package with a different...
Read more >
Package List — Spack 0.20.0.dev0 documentation
Designed for programmers with large heterogeneous trees of source code, ... the Discrete Fourier Transform (DFT) and various special cases thereof.
Read more >
Howto modify/affect/adapt conan dependencies - Stack Overflow
1j: Cannot load recipe. Error loading conanfile at '/conan/.conan/data/openssl/1.1.1j/_/_/export/conanfile.py': Current Conan ...
Read more >
homebrew-core - Homebrew Formulae
a2ps 4.14 Any‑to‑PostScript filter aacgain 1.8 AAC‑supporting version of mp3gain aalib 1.4rc5 Portable ASCII art graphics library aamath 0.3 Renders mathematical expressions as ASCII art
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found