deb: distributions list uses only first entry instead of all #61
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
nagonag
nagonag/ignore
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
heiko/gogogo#61
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Bug
When
.gogogo.confhas:the generated
.changesfile contains onlyDistribution: bookworm(the first item). It should containDistribution: bookworm trixieso dupload uploads to both distributions. The changelog entry in the.changesbody has the same issue.Root cause
internal/cmd/release/dupload.go, lines 226 and 231 usefirstStringOr(cf.Artifacts.Deb.Distributions, "stable")which returns onlyvalues[0].The fix is to join all items with a space:
with a fallback to
"stable"when the slice is empty.Reproduction
Set
distributions: [bookworm, trixie]in.gogogo.conf, rungogogo pack --out dist, inspect the resulting.changesfile.