debian-forge-composer/internal/target/koji_target.go
Tom Gundersen e52830f530 upload/koji: don't pass task_id to cg_init_build
Contrary to our assumption, we cannot initialize the build with the
link to the task. We can only update the link once the build has
completed.

This seems like a bug in koji, but we keep it like this for now.
2020-09-16 00:15:02 +01:00

19 lines
578 B
Go

package target
type KojiTargetOptions struct {
BuildID uint64 `json:"build_id"`
TaskID uint64 `json:"task_id"`
Token string `json:"token"`
Name string `json:"name"`
Version string `json:"version"`
Release string `json:"release"`
Filename string `json:"filename"`
UploadDirectory string `json:"upload_directory"`
Server string `json:"server"`
}
func (KojiTargetOptions) isTargetOptions() {}
func NewKojiTarget(options *KojiTargetOptions) *Target {
return newTarget("org.osbuild.koji", options)
}