You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Conan version: 2.0.17 (packaged as exe with the pyinstaller script)
Python version: 3.12
Steps to reproduce
In any recipe, setting a conf value to any of the following values results in an error: [copy, re, fnmatch, OrderedDict]. This is probably because there are modules / types with the same name imported in the file where eval is run. That results in the value being interpreted as something other than a string.
PS C:\E\ws\temp\New folder (3)> conan build . -c "user.company.conf:conf=re"
ERROR: It's not possible to compose module values and str ones.
PS C:\E\ws\temp\New folder (3)> conan build . -c "user.company.conf:conf=OrderedDict"
ERROR: It's not possible to compose type values and str ones.
PS C:\E\ws\temp\New folder (3)> conan build . -c "user.company.conf:conf=fnmatch"
ERROR: It's not possible to compose module values and str ones.
The text was updated successfully, but these errors were encountered:
The suspected file where this issue is present is probably: conans/model/conf.py
Particularly the function _get_evaluated_value(__v) in line: 643 (or line 653 in the current version)
This is indeed a gap in the evaluation of confs, it didn't take into account the possibility of a match with an existing Python module. I am submitting a fix in #15779 for next 2.2 release.
Environment details
Steps to reproduce
eval
is run. That results in the value being interpreted as something other than a string.Dummy scenario:
conanfile.py
command:
Logs
The text was updated successfully, but these errors were encountered: