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

[conan.io/center] Invalid instructions in developing_recipes_locally.md - conan config set #20601

Closed
eyalroz opened this issue Oct 16, 2023 · 3 comments · Fixed by #20683
Closed
Assignees
Labels
question Further information is requested

Comments

@eyalroz
Copy link
Contributor

eyalroz commented Oct 16, 2023

What is your problem/feature request?

(Background: I'm a package author and I'm trying to follow the instructions to submit/upload my package to conan. I already tried this about a year ago, and failed at the stage of authoring an appropriate recipe. I'm now trying again from scratch.)

So, I'm following the instructions in developing_recipes_locally.md (the Clone Your Fork section). Specifically, it tells me to execute:

conan config install https://github.com/conan-io/hooks.git -sf hooks -tf hooks
conan config set hooks.conan-center

The first command runs fine; the second command - doesn't:

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

Is this perhaps a conan1 vs conan2 issue?


My system details:

  • Devuan Excalibur GNU/Linux
  • Kernel: 6.5.0-1-amd64
  • Conan client: 2.0.13
  • Python: 3.11.6
@eyalroz eyalroz added the conan.io/center Issues and features related to Web UI label Oct 16, 2023
@eyalroz eyalroz changed the title [conan.io/center] SHORT DESCRIPTION [conan.io/center] Invalid instructions in developing_recipes_locally.md - conan config set Oct 16, 2023
@AbrilRBS
Copy link
Member

Hi @eyalroz thanks a lot for the report, we surely can make this a bit more obvious for the reader

Is this perhaps a conan1 vs conan2 issue?

Yep, the docs mention that "Warning: This is not yet supported with Conan 2.0", but you're right that it's not maybe too visible, will double check, thansk!

(Pinging @uilianries who is working on adding support for v2 hooks)

@AbrilRBS AbrilRBS self-assigned this Oct 18, 2023
@AbrilRBS AbrilRBS added question Further information is requested and removed conan.io/center Issues and features related to Web UI labels Oct 18, 2023
@eyalroz
Copy link
Contributor Author

eyalroz commented Oct 18, 2023

@uilianries : If there is a version of that document for conan 2, I'd be happy to try it out (and report issues if you like). I assume I can continue following those instructions from the section after the one I got a failure in?

@uilianries
Copy link
Member

Hello @eyalroz, thank you for your interesting on hooks with Conan 2.x!

Indeed is not officially supported CCI hooks with Conan 2.x, but there are some consideration in case you want to give a try:

Anyway, the CCI is not well documented about Hooks and Conan 2.x, so it deserves an update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants