conan-io / hooks

Official Conan client hooks
MIT License
32 stars 44 forks source link

Wrong documentation on how to activate the hooks #531

Closed elvisdukaj closed 3 months ago

elvisdukaj commented 3 months ago

To activate the hook the documentation says:

$ conan config set hooks.conan-center

But with conan 2+ I have an error:

$ conan config set hooks.conan-center                                            
usage: conan config [-h] [-v [V]] [-cc CORE_CONF] {home,install,install-pkg,list,show} ...
conan config: error: argument subcommand: invalid choice: 'set' (choose from 'home', 'install', 'install-pkg', 'list', 'show')

What is the right way to activate hooks?

uilianries commented 3 months ago

Hello @elvisdukaj! Your question looks duplicated to https://github.com/conan-io/hooks/issues/506

Please, take a look there first. Regards!

elvisdukaj commented 3 months ago

Thank you for the feedback! This issue can be closed than 😀