[CentOS-devel] koji build for golang

Howard Johnson

merlin at mwob.org.uk
Thu Sep 11 18:45:01 UTC 2014


On 11/09/2014 18:24, Lokesh Mandvekar wrote:
> I'm trying to build golang-1.3 in koji for CentOS7, but I see this error:
>
> Task info: https://cbs.centos.org/koji/taskinfo?taskID=473
> Watching tasks (this may be safely interrupted)...
> 473 build (bananas7-el7.centos, golang-1.3.1-2.el7.centos.src.rpm): free
> 473 build (bananas7-el7.centos, golang-1.3.1-2.el7.centos.src.rpm): free -> open (x86_64-0.centos.org)
> 473 build (bananas7-el7.centos, golang-1.3.1-2.el7.centos.src.rpm): open (x86_64-0.centos.org) -> FAILED: BuildError: package golang not in list for tag bananas7-testing
>    0 free  0 open  0 done  1 failed
>
> Does the package have to be pre-added to this tag?

Yep, packages have to be added to koji tags before you can do 
non-scratch builds.  You're targetting the bananas7-el7.centos build 
target, the destination tag for  which is bananas7-testing.  golang 
needs to be in the bananas7-testing tag, either directly, or via 
inheritance from another tag.  bananas7-testing doesn't have any parent 
tags, so in this case the package needs to be added directly to the tag.

A package can be added to a tag using the koji cli:

koji add-pkg --owner lsm5 bananas7-testing

I'm not sure if a normal user can call add-pkg, I think you might need 
to be a koji admin.  Worth a try.

-- 
HJ



More information about the CentOS-devel mailing list