Documentation
¶
Overview ¶
Package config contains the model and loader of the goreleaser configuration file.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Archive ¶ added in v0.5.0
type Archive struct {
Format string `yaml:",omitempty"`
FormatOverrides []FormatOverride `yaml:"format_overrides,omitempty"`
NameTemplate string `yaml:"name_template,omitempty"`
Replacements map[string]string `yaml:",omitempty"`
Files []string `yaml:",omitempty"`
}
Archive config used for the archive
type Build ¶ added in v0.5.0
type Build struct {
Goos []string `yaml:",omitempty"`
Goarch []string `yaml:",omitempty"`
Goarm []string `yaml:",omitempty"`
Ignore []IgnoredBuild `yaml:",omitempty"`
Main string `yaml:",omitempty"`
Ldflags string `yaml:",omitempty"`
Flags string `yaml:",omitempty"`
Binary string `yaml:",omitempty"`
Hooks Hooks `yaml:",omitempty"`
}
Build contains the build configuration section
type FPM ¶ added in v0.7.0
type FPM struct {
Formats []string `yaml:",omitempty"`
Dependencies []string `yaml:",omitempty"`
Conflicts []string `yaml:",omitempty"`
Vendor string `yaml:",omitempty"`
Homepage string `yaml:",omitempty"`
Maintainer string `yaml:",omitempty"`
Description string `yaml:",omitempty"`
License string `yaml:",omitempty"`
}
FPM config
type FormatOverride ¶ added in v0.12.3
FormatOverride is used to specify a custom format for a specific GOOS.
type Homebrew ¶ added in v0.1.6
type Homebrew struct {
GitHub Repo `yaml:",omitempty"`
Folder string `yaml:",omitempty"`
Caveats string `yaml:",omitempty"`
Plist string `yaml:",omitempty"`
Install string `yaml:",omitempty"`
Dependencies []string `yaml:",omitempty"`
Conflicts []string `yaml:",omitempty"`
Description string `yaml:",omitempty"`
Homepage string `yaml:",omitempty"`
}
Homebrew contains the brew section
type IgnoredBuild ¶ added in v0.17.0
type IgnoredBuild struct {
Goos, Goarch, Goarm string
}
IgnoredBuild represents a build ignored by the user
type Project ¶ added in v0.5.0
type Project struct {
Release Release `yaml:",omitempty"`
Brew Homebrew `yaml:",omitempty"`
Build Build `yaml:",omitempty"`
Archive Archive `yaml:",omitempty"`
FPM FPM `yaml:",omitempty"`
Snapshot Snapshot `yaml:",omitempty"`
// test only property indicating the path to the dist folder
Dist string `yaml:"-"`
}
Project includes all project configuration
Click to show internal directories.
Click to hide internal directories.