Re: git clone under mock/koji builders
On 21. 01. 22 17:39, Ron Olson wrote: Is it possible to clone a repo as part of a Source line? I’ve been looking and can’t find any examples. See https://docs.fedoraproject.org/en-US/packaging-guidelines/SourceURL/#_using_revision_control and https://docs.fedoraproject.org/en-US/packaging-guidelines/SourceURL/#_git_hosting_services -- Miro Hrončok -- Phone: +420777974800 IRC: mhroncok ___ devel mailing list -- devel@lists.fedoraproject.org To unsubscribe send an email to devel-le...@lists.fedoraproject.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.fedoraproject.org/archives/list/devel@lists.fedoraproject.org Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure
Re: git clone under mock/koji builders
Is it possible to clone a repo as part of a Source line? I’ve been looking and can’t find any examples. On 21 Jan 2022, at 10:34, Miro Hrončok wrote: > On 21. 01. 22 17:21, Ron Olson wrote: >> Hey all- >> >> I have a package that gets an artifact from a repo /and/ expects to have >> code from a different branch in the same repo. In my spec file, I can easily >> get the artifact via Sources, but getting the code from the separate branch >> required me to execute a “git clone” then checkout the branch. This works >> fine until I tried doing a mock build where I ran into the issue that >> networking like this is apparently unavailable. I saw that I can enabled it >> with a command line switch, but I presume that’s not possible with koji. >> >> Is there any proper way to checkout code with git from within koji? > > No. You need to add it as an extra Source. Koji builds are always offline. > > -- > Miro Hrončok > -- > Phone: +420777974800 > IRC: mhroncok ___ devel mailing list -- devel@lists.fedoraproject.org To unsubscribe send an email to devel-le...@lists.fedoraproject.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.fedoraproject.org/archives/list/devel@lists.fedoraproject.org Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure
Re: git clone under mock/koji builders
On 21/01/2022 17:21, Ron Olson wrote: Is there any proper way to checkout code with git from within koji? No. Koji doesn't have network access for security reasons. You must download submodules/etc as sources. -- Sincerely, Vitaly Zaitsev (vit...@easycoding.org) ___ devel mailing list -- devel@lists.fedoraproject.org To unsubscribe send an email to devel-le...@lists.fedoraproject.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.fedoraproject.org/archives/list/devel@lists.fedoraproject.org Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure
Re: git clone under mock/koji builders
On 21. 01. 22 17:21, Ron Olson wrote: Hey all- I have a package that gets an artifact from a repo /and/ expects to have code from a different branch in the same repo. In my spec file, I can easily get the artifact via Sources, but getting the code from the separate branch required me to execute a “git clone” then checkout the branch. This works fine until I tried doing a mock build where I ran into the issue that networking like this is apparently unavailable. I saw that I can enabled it with a command line switch, but I presume that’s not possible with koji. Is there any proper way to checkout code with git from within koji? No. You need to add it as an extra Source. Koji builds are always offline. -- Miro Hrončok -- Phone: +420777974800 IRC: mhroncok ___ devel mailing list -- devel@lists.fedoraproject.org To unsubscribe send an email to devel-le...@lists.fedoraproject.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.fedoraproject.org/archives/list/devel@lists.fedoraproject.org Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure
Re: git clone under mock/koji builders
On Fri, 21 Jan 2022 10:21:11 -0600 Ron Olson wrote: > Hey all- > > I have a package that gets an artifact from a repo *and* expects to have > code from a different branch in the same repo. In my spec file, I can > easily get the artifact via Sources, but getting the code from the > separate branch required me to execute a “git clone” then checkout > the branch. This works fine until I tried doing a mock build where I ran > into the issue that networking like this is apparently unavailable. I > saw that I can enabled it with a command line switch, but I presume > that’s not possible with koji. > > Is there any proper way to checkout code with git from within koji? builds in koji have network disabled by design Dan ___ devel mailing list -- devel@lists.fedoraproject.org To unsubscribe send an email to devel-le...@lists.fedoraproject.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.fedoraproject.org/archives/list/devel@lists.fedoraproject.org Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure
git clone under mock/koji builders
Hey all- I have a package that gets an artifact from a repo *and* expects to have code from a different branch in the same repo. In my spec file, I can easily get the artifact via Sources, but getting the code from the separate branch required me to execute a “git clone” then checkout the branch. This works fine until I tried doing a mock build where I ran into the issue that networking like this is apparently unavailable. I saw that I can enabled it with a command line switch, but I presume that’s not possible with koji. Is there any proper way to checkout code with git from within koji? Thanks for any info! Ron___ devel mailing list -- devel@lists.fedoraproject.org To unsubscribe send an email to devel-le...@lists.fedoraproject.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.fedoraproject.org/archives/list/devel@lists.fedoraproject.org Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure