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.

[question] 2.0 trigger build for exact setting when a compatible copy exists in the cache

See original GitHub issue
  1. Lets say I have a template cmake_lib project called math 😉
  2. build it with conan create math -s compiler.cppstd=11 This will work, compiling the project on a clean system
  3. build it with conan create math -s compiler.cppstd=14 This will not build – reports it’s already installed

Is it possible to circumvent this? If I want to generate multiple configurations must I upload and remove them each time?

$  conan create math --version 1.0 --build=math -s compiler.cppstd=14
Exporting the recipe
math/1.0: Exporting package recipe
math/1.0: Copied 1 '.txt' file: CMakeLists.txt
math/1.0: Copied 1 '.cpp' file: mymath.cpp
math/1.0: Copied 1 '.h' file: mymath.h
math/1.0 exports_sources: Copied 1 '.txt' file: CMakeLists.txt
math/1.0 exports_sources: Copied 1 '.cpp' file: mymath.cpp
math/1.0 exports_sources: Copied 1 '.h' file: mymath.h
math/1.0: Using the exported files summary hash as the recipe revision: 02fc9388fa48ee96ef5bc9976d653729
math/1.0: A new conanfile.py version was exported
math/1.0: Folder: /Users/christopherm/conan-whatsnew2/conan2_home/p/86f62652af2692bf/e
math/1.0: Exported revision: 02fc9388fa48ee96ef5bc9976d653729

-------- Input profiles --------
Profile host:
[settings]
arch=x86_64
build_type=Release
compiler=apple-clang
compiler.cppstd=14
compiler.libcxx=libc++
compiler.version=14
os=Macos

Profile build:
[settings]
arch=x86_64
build_type=Release
compiler=apple-clang
compiler.cppstd=11
compiler.libcxx=libc++
compiler.version=14
os=Macos


-------- Computing dependency graph --------
Graph root
    virtual
Requirements
    math/1.0#02fc9388fa48ee96ef5bc9976d653729 - Cache

-------- Computing necessary packages --------
math/1.0: Checking 11 compatible configurations:
math/1.0: '6bc1761873dc0e57d5456d7f5e7ac2e5bf7e250d': compiler.cppstd=98
math/1.0: '0cbbca71fa71c42e80adb683729a9e3962abdf75': compiler.cppstd=gnu98
math/1.0: 'd91e297436295aa4df7a6d6b6d2f4d6acb668bc5': compiler.cppstd=11
math/1.0: Main binary package '262d398523e3cf043e4616699660b816c5d41105' missing. Using compatible package 'd91e297436295aa4df7a6d6b6d2f4d6acb668bc5'
Requirements
    math/1.0#02fc9388fa48ee96ef5bc9976d653729:d91e297436295aa4df7a6d6b6d2f4d6acb668bc5#fd45b29df16590deb0c6101a12c4ca92 - Cache

-------- Installing packages --------

-------- Installing (downloading, building) binaries... --------
math/1.0: Already installed!

Issue Analytics

  • State:closed
  • Created 10 months ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
memshardedcommented, Nov 14, 2022

Oh, I see, yes, I think the semantics of --build=missing = “don’t build this binary if there is a valid one already existing”. And a “valid one” includes a compatible one.

0reactions
memshardedcommented, Nov 15, 2022

It seems that https://github.com/conan-io/conan/pull/12528 closes this question as solved, but let me know otherwise

Read more comments on GitHub >

github_iconTop Results From Across the Web

linkedin-skill-assessments-quizzes/git-quiz.md at main - GitHub
A new copy would overwrite the central repository; A copy of the repository would be created on your local machine; Nothing, cloning is...
Read more >
Caching in GitLab CI/CD
On the top bar, select Main menu > Projects and find your project. On the left sidebar, select Settings > CI/CD. Expand General...
Read more >
Configuring CircleCI
The setup field enables you to conditionally trigger configurations from outside the primary .circleci parent directory, update pipeline parameters, ...
Read more >
cache2k User Guide
The cache uses the key instance in its own data structure. When defining your own keys, it is therefore a good idea to...
Read more >
Frequently Asked Questions (FAQs) - Snap Creek Software
Management, Sales, licensing and plugin setup. Create Backup, Package creation in the WordPress admin. Install Backup, Install/Importing your package to a ...
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