Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to apply conan config install for all recipes #1382

Closed
rockdreamer opened this issue Apr 16, 2021 · 2 comments
Closed

Ability to apply conan config install for all recipes #1382

rockdreamer opened this issue Apr 16, 2021 · 2 comments

Comments

@rockdreamer
Copy link

As a maintainer of a medium sized set of packages for a company using Conan/Artifactory, I'd like to be able to use something like bincrafters/templates to build them.

Our current workflow is based around applying a conan config install command before running any recipe.

Ideally I'd like to be able to add a .bincrafters-package-tools.yml file in the root of the repository with contents like:

---
conan_configuration_sources:
  - url: https://github.com/ccdc-opensource/conan-ccdc-common-configuration.git
    type: git
    args: -b main

And all builds will run conan config install --type git --args -b main https://github.com/ccdc-opensource/conan-ccdc-common-configuration.git before any other command.

@Croydon
Copy link
Member

Croydon commented Apr 18, 2021

I think there is already such a feature.

Bincrafters-package-tools (BPT) build upon conan-package-tools (CPT). So most features of CPT are also usable via BPT.

Did you try using the env variable CONAN_CONFIG_URL?

https://github.com/conan-io/conan-package-tools#installing-custom-conan-config

Edit:

There are more env variables for this:

CONAN_CONFIG_ARGS: Conan config arguments used when installing conan config

CONAN_BASE_PROFILE: Apply options, settings, etc. to this profile instead of default.

@rockdreamer
Copy link
Author

Hi @Croydon, you're right, thank you for the pointers to the info. I'll close this bug report and a PR I was preparing with this change :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants