This is possible, but it is probably more work than you expect.
Mock is not abstracted in the code, so you can't simply swap out mock for
something else. You'd need to write new method handlers.
There is also the matter of how to trigger such builds. If this plugin adds
new build methods, then you'd likely need a hub plugin to create the
task(s) and a cli plugin to provide the command.
I suppose you could alternately override the `buildArch` method if your
approach could work as a drop-in replacement for it, but it's unclear what
exactly you are trying to accomplish.
On Mon, Nov 30, 2020 at 12:35 PM Leonardo Rossetti <lrossett(a)redhat.com>
wrote:
Hello,
I was taking a look at this page:
https://docs.pagure.org/koji/writing_a_plugin/ and I was wondering if a
plugin could be written to provide an alternative build/isolation system
instead of the default one.
Would it be possible to write a builder plugin that would not use mock as
the isolation system?
Regards,
--
Leonardo Rossetti
Senior Software Engineer,
Red Hat <
https://www.redhat.com>
lrossett(a)redhat.com
<
https://www.redhat.com>
_______________________________________________
koji-devel mailing list -- koji-devel(a)lists.fedorahosted.org
To unsubscribe send an email to koji-devel-leave(a)lists.fedorahosted.org
Fedora Code of Conduct:
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines:
https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives:
https://lists.fedorahosted.org/archives/list/koji-devel@lists.fedorahoste...