conan icon indicating copy to clipboard operation
conan copied to clipboard

[feature] Add `--extensions-dir` arg to conan

Open rconde01 opened this issue 1 year ago • 2 comments

What is your suggestion?

Currently extensions need to be in CONAN_HOME, but potentially you want the extension source to be kept in your repository for versioning purposes - e.g. if you change the behavior over time and other infrastructure depends on a particular behavior. This would be facilitated by an --extensions-dir argument which overrides, or potentially takes precedence, over the directory in CONAN_HOME.

Have you read the CONTRIBUTING guide?

  • [X] I've read the CONTRIBUTING guide

rconde01 avatar May 15 '24 14:05 rconde01

Hi @rconde01

Currently extensions need to be in CONAN_HOME, but potentially you want the extension source to be kept in your repository for versioning purposes - e.g. if you change the behavior over time and other infrastructure depends on a particular behavior.

For this purpose we have recently added the conan config install-pkg command that can use Conan packages to store the extensions, so they are not only versioned, but they can also be updated, they can be part of lockfiles and they can even be part of the package_id of the packages that use that specific configuration package. Have you checked it?

memsharded avatar May 15 '24 21:05 memsharded

I'll check it out

rconde01 avatar May 15 '24 22:05 rconde01

Just getting around to this now. Unfortunately this doesn't really fix the problem I had, which is that I might have multiple clones using the same local cache. Regardless of how the extensions get installed, I still have the problem that both can't work at the same time. The suggested switch would allow that.

rconde01 avatar Jul 07 '24 20:07 rconde01