Conan version in requirements is outdated, makes pipeline fail
Summary
The requirements.txt
has conan 1.43, which is missing the is_msvc
function, which makes the pipelines fail.
Expected Behavior
Pipelines should run.
Actual Behavior
Pipeline fails with:
zlib/1.2.12: Downloaded recipe revision 0
ERROR: zlib/1.2.12: Cannot load recipe.
Error loading conanfile at '/root/.conan/data/zlib/1.2.12/_/_/export/conanfile.py': Unable to load conanfile in /root/.conan/data/zlib/1.2.12/_/_/export/conanfile.py
File "/usr/lib/python3.9/imp.py", line 171, in load_source
module = _load(spec)
File "<frozen importlib._bootstrap>", line 711, in _load
File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 790, in exec_module
File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
File "/root/.conan/data/zlib/1.2.12/_/_/export/conanfile.py", line 1, in <module>
from conan.tools.microsoft import is_msvc
ImportError: cannot import name 'is_msvc' from 'conan.tools.microsoft' (/usr/local/lib/python3.9/dist-packages/conan/tools/microsoft/__init__.py)
The command '/bin/sh -c conan create .. -s "compiler.libcxx=libstdc++11"' returned a non-zero code: 1
ERROR: Job failed: exit code 1
Steps to Reproduce the Problem
- Run pipeline in Gitlab.
Specifications
- Version: Latest dev
- Platform: Linux
Possible fixes
Upgrade requirements.txt