#4180 koji trying to fetch unexpected repo
Closed: Dropped by vanzhiganov. Opened by vanzhiganov.

Recently, I am updated the parameter allowed_scms in /etc/kojid/kojid.conf for:

git.centos.org:/rpms/*\:no\:centpkg,sources

and trying to build bash package:

koji build --scratch --skip-tag common-dist \
"git+https://git.centos.org/rpms/bash.git#9cbdf4fdb89fe717ae05c0df3ae34c101ed9db47"

but the build failed due to the error:

==> 101:DEFAULT:checkout.log <==
$ git clone -n https://git.centos.org/rpms/bash.git /var/lib/mock/common-build-27-23/root/chroot_tmpdir/scmroot/bash
Cloning into '/var/lib/mock/common-build-27-23/root/chroot_tmpdir/scmroot/bash'...
$ git fetch origin 9cbdf4fdb89fe717ae05c0df3ae34c101ed9db47:KOJI_FETCH_HEAD
From https://git.centos.org/rpms/bash
 * [new ref]         9cbdf4fdb89fe717ae05c0df3ae34c101ed9db47 -> KOJI_FETCH_HEAD
$ git reset --hard KOJI_FETCH_HEAD
HEAD is now at 9cbdf4f import bash-5.1.8-6.el9_1
$ git clone https://git.centos.org/rpms/common.git common
Cloning into 'common'...
fatal: repository 'https://git.centos.org/rpms/common.git/' not found

I don't understand where the common repository came from.


I am found the answer in configuration file kojid.conf:

; If use_common is not present, kojid will attempt to checkout a common/
; directory from the repository.  If use_common is set to no, off, false, or 0,
; it will not attempt to checkout a common/ directory.

and correct source_cmd string looks like:

git.centos.org:/rpms/*:false:centpkg,sources

Metadata Update from @vanzhiganov:
- Issue close_status updated to: Dropped
- Issue status updated to: Closed (was: Open)

This issue has been migrated to Fedora Forge:
https://forge.fedoraproject.org/koji/koji/issues/4180

Please continue any further discussion there.

Metadata