Conan: [question] Is there a way to skip specific packages from build when calling install --build?

Created on 4 Feb 2021  路  3Comments  路  Source: conan-io/conan

I've built a package separately and it took a lot of time. I want to rebuild other main project's dependencies but pass a specific package. Is it possible?

UPD: Or even better, an option that will force build packages fetched from remote but skip build if the package has already been built in local cache.
Example: I build qt from sources which takes a lot of time, then it is built and ready in my cache. I run conan install in my application project and it fetches another packages and builds it from sources skipping the qt

low medium queue feature

Most helpful comment

@czoido Hi! Yes, I meant especially this. I want to rebuild "everything" except "something". Could you transform the issue into a feature request?

All 3 comments

Hi @xahon,
If you want to skip building already built packages you should pass the missing parameter to --build argument when calling conan install. If you just call --build Conan will try to rebuild all the dependencies from sources. If you already built that package for the same configuration that you are using in the consumer project, then it should not be built but reused from the Conan cache. Please have a look at the Conan build policies.
Thanks a lot for your question, I hope this helps.

Hi聽@xahon,
I think I misunderstood your question. Do you mean that you want to build everything but an specific package?
Something like: conan install --build --build=!mypkg
If that's the case that's not possible currently in Conan but could be a valid feature request.

@czoido Hi! Yes, I meant especially this. I want to rebuild "everything" except "something". Could you transform the issue into a feature request?

Was this page helpful?
0 / 5 - 0 ratings