You've already forked goreleaser
mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-09-16 09:26:52 +02:00
fix(snapcraft): title and icon are optional (#4138)
It will otherwise create the empty fields in the yaml, and snapcraft then complains they are empty and fail. Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
76ce66c060
commit
528b06a075
@@ -37,11 +37,11 @@ var ErrNoSummary = errors.New("no summary provided for snapcraft")
|
||||
// Metadata to generate the snap package.
|
||||
type Metadata struct {
|
||||
Name string
|
||||
Title string
|
||||
Title string `yaml:",omitempty"`
|
||||
Version string
|
||||
Summary string
|
||||
Description string
|
||||
Icon string
|
||||
Icon string `yaml:",omitempty"`
|
||||
Base string `yaml:",omitempty"`
|
||||
License string `yaml:",omitempty"`
|
||||
Grade string `yaml:",omitempty"`
|
||||
|
Reference in New Issue
Block a user