~sircmpwn/builds.sr.ht

a8ddf38af1ce8f83bd4efba0d3a52908a5ca0505 — Conrad Hoffmann a month ago 8bb21bb 0.89.16
worker: do not include man.sr.ht in hut config

Hut currently does not support man.sr.ht and will choke on the generated
config stanza.
1 files changed, 4 insertions(+), 0 deletions(-)

M worker/tasks.go
M worker/tasks.go => worker/tasks.go +4 -0
@@ 352,6 352,10 @@ func (ctx *JobContext) SendHutConfig() error {
		if !strings.HasSuffix(name, ".sr.ht") || strings.Contains(name, "::") {
			continue
		}
		if name == "man.sr.ht" {
			// TODO remove this once hut supports it
			continue
		}
		origin, ok := section["api-origin"]
		if !ok {
			origin, ok = section["origin"]