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.

Consider not using the CACHE in conan install

See original GitHub issue

There is the issue https://github.com/conan-io/conan/issues/1015, which is creating problems due to the caching. But not only because of this.

It is true, that caching of settings/options/env is necessary for build, source, package, etc conan commands. But maybe conan install should always make explicit the inputs, via command line. “Explicit is better than implicit”. Same for conan test_package.

Even if this can break something, it is extremely easy to fix, just provide a profile or settings in the command line, i.e. nothing to fix inside conan, just in the conan command invocation by users.

What do you think?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
trucommented, Feb 27, 2017

Yeah I am for this. This was really hard to find and debug when I ran into it the other day.

1reaction
sztomicommented, Feb 27, 2017

Me too, I regularly test a package with different settings and I often run into a situation where I just end up deleting the whole package directory.

But maybe conan install should always make explicit the inputs, via command line

I’d say it should work with defaults, but if the settings are provided, conan should use those. Is this what you mean by this?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Conan local cache: concurrency, Continuous Integration ...
Conan local cache support some degree of concurrency, allowing simultaneous creation or installation of different packages, or building different binaries for ...
Read more >
How to force conan to build from source, but only if it is not in ...
The first time using conan install to install the library (e.g. it is not in my cache) then conan will build from source...
Read more >
CONAN CHEAT SHEET - JFrog
conan config install <url> ... Just export the recipe to local cache. $ conan export ... One or more with wildcard support, with...
Read more >
Add support for Conan package manager - Qt Bug Tracker
Qt Creator just using the Conan supplied directories (Conan cache) would be ... After the cmake configure the conan install command is not...
Read more >
How to fix conan install ERROR: Missing binary - TechOverflow
Use the --build=missing flag for conan install to enable building the ... openssl/1.1.1l: Not found in local cache, looking in remotes.
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