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.

[feature] Add --build parameter to build all packages not in local cache

See original GitHub issue

On our Linux CI/CD server I want to prevent that we download binary packages that are built against a newer libc version. The easiest solution for that seems to build all packages that are not in the local cache from source. However as fas as I can find the --build option for conan install, conan create etc doesn’t support this build policy yet.

I think it would be useful to allow conan install .... --build=not_in_cache. The not_in_cache parameter is of course only an example and can be changed as fit.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
wdobbecommented, May 27, 2021

Thanks. We already have a repo for conan config install, I will add our settings.yml to it.

1reaction
memshardedcommented, May 27, 2021

Hi @wdobbe

I think the right, long term solution if you want to control, track and manage properly the differences of the new libc version is not this way, but adding a custom sub-setting that will represent this difference: https://docs.conan.io/en/latest/extending/custom_settings.html#adding-new-sub-settings.

This can be very straightforward, only add the subsetting to the settings.yml, then to the profiles that you are using, no need to change the recipes, and if you want to have backward binary package_id compatibility, adding a None value for the subsetting will make it. Then --build=missing will always do the right thing, safely and optimally.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Managing the global packages, cache, and temp folders
In this article. Viewing folder locations; Clearing local folders; Troubleshooting errors. Whenever you install, update, or restore a package, ...
Read more >
conan create — conan 1.55.0 documentation
Possible parameters: --build Force build for all packages, do not use binary ... of the dependencies exists there, it will install those in...
Read more >
Build caching in AWS CodeBuild
Local caching stores a cache locally on a build host that is available to that build host only. This is a good option...
Read more >
Build Cache - Gradle User Manual
The Gradle build cache is a cache mechanism that aims to save time by reusing outputs produced by other builds. The build cache...
Read more >
Caching dependencies to speed up workflows - GitHub Docs
Use caching when you want to reuse files that don't change often between jobs or workflow runs, such as build dependencies from 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