#1117 document list of currently available chroots
Closed: Fixed 4 years ago by praiskup. Opened 4 years ago by dhodovsk.

With the use of packit, upstream users have a way of specifying build chroot without accessing copr build settings. But for them to be sure what can and what cannot be used, we need a way to show them what are the available chroots.

It might be a subcommand:
copr-cli list-chroot

or even better a section in a doc.


Hello @dhodovsk, thank you for the feedback.

or even better a section in a doc.

Maintaining an up-to-date list of chroots in docs sounds to me a little bit tedious and always just a step away from slipping out end becoming outdated.

The suggested copr-cli list-chroot command (or mock-chroots, list-mock-chroots, etc) sound much better to me.

Metadata Update from @praiskup:
- Issue tagged with: API, RFE

4 years ago

Cli command sounds good to me as well, s/list-chroot/list-chroots/.

Metadata Update from @dturecek:
- Issue assigned to dturecek

4 years ago

When running this there was an error

[dhodovsk@shiny convert2rhel]$ copr-cli list-chroots
Traceback (most recent call last):
  File "/usr/bin/copr-cli", line 11, in <module>
    load_entry_point('copr-cli==1.84', 'console_scripts', 'copr-cli')()
  File "/usr/lib/python3.7/site-packages/copr_cli/main.py", line 1339, in main
    getattr(commands, arg.func)(arg)
  File "/usr/lib/python3.7/site-packages/copr_cli/main.py", line 543, in action_list_chroots
    chroots = self.client.mock_chroot_proxy.get_list()
AttributeError: 'Client' object has no attribute 'mock_chroot_proxy'
[dhodovsk@shiny convert2rhel]$ copr-cli --version
copr version 1.84

Please update python3-copr to 1.100.

Login to comment on this ticket.

Metadata
Related Pull Requests
  • #1130 Merged 4 years ago