deb: distributions list uses only first entry instead of all #61

Closed
opened 2026-05-19 12:18:24 +02:00 by heiko · 0 comments
Owner

Bug

When .gogogo.conf has:

artifacts:
  deb:
    distributions:
      - bookworm
      - trixie

the generated .changes file contains only Distribution: bookworm (the first item). It should contain Distribution: bookworm trixie so dupload uploads to both distributions. The changelog entry in the .changes body has the same issue.

Root cause

internal/cmd/release/dupload.go, lines 226 and 231 use firstStringOr(cf.Artifacts.Deb.Distributions, "stable") which returns only values[0].

The fix is to join all items with a space:

strings.Join(cf.Artifacts.Deb.Distributions, " ")

with a fallback to "stable" when the slice is empty.

Reproduction

Set distributions: [bookworm, trixie] in .gogogo.conf, run gogogo pack --out dist, inspect the resulting .changes file.

## Bug When `.gogogo.conf` has: ```yaml artifacts: deb: distributions: - bookworm - trixie ``` the generated `.changes` file contains only `Distribution: bookworm` (the first item). It should contain `Distribution: bookworm trixie` so dupload uploads to both distributions. The changelog entry in the `.changes` body has the same issue. ## Root cause `internal/cmd/release/dupload.go`, lines 226 and 231 use `firstStringOr(cf.Artifacts.Deb.Distributions, "stable")` which returns only `values[0]`. The fix is to join all items with a space: ```go strings.Join(cf.Artifacts.Deb.Distributions, " ") ``` with a fallback to `"stable"` when the slice is empty. ## Reproduction Set `distributions: [bookworm, trixie]` in `.gogogo.conf`, run `gogogo pack --out dist`, inspect the resulting `.changes` file.
heiko closed this issue 2026-05-20 14:24:01 +02:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
heiko/gogogo#61
No description provided.