2018-10-26 16:03:55 +02:00
|
|
|
// Package defaults make the list of Defaulter implementations available
|
|
|
|
// so projects extending GoReleaser are able to use it, namely, GoDownloader.
|
|
|
|
package defaults
|
|
|
|
|
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
|
|
|
|
"github.com/goreleaser/goreleaser/internal/pipe/archive"
|
|
|
|
"github.com/goreleaser/goreleaser/internal/pipe/artifactory"
|
2022-01-20 19:59:39 +02:00
|
|
|
"github.com/goreleaser/goreleaser/internal/pipe/aur"
|
2019-06-05 15:51:01 +02:00
|
|
|
"github.com/goreleaser/goreleaser/internal/pipe/blob"
|
2018-10-26 16:03:55 +02:00
|
|
|
"github.com/goreleaser/goreleaser/internal/pipe/brew"
|
|
|
|
"github.com/goreleaser/goreleaser/internal/pipe/build"
|
|
|
|
"github.com/goreleaser/goreleaser/internal/pipe/checksums"
|
2021-09-11 19:36:40 +02:00
|
|
|
"github.com/goreleaser/goreleaser/internal/pipe/discord"
|
2018-10-26 16:03:55 +02:00
|
|
|
"github.com/goreleaser/goreleaser/internal/pipe/docker"
|
2021-09-29 01:16:39 +02:00
|
|
|
"github.com/goreleaser/goreleaser/internal/pipe/gofish"
|
2021-03-31 02:06:25 +02:00
|
|
|
"github.com/goreleaser/goreleaser/internal/pipe/gomod"
|
2021-11-11 14:37:58 +02:00
|
|
|
"github.com/goreleaser/goreleaser/internal/pipe/krew"
|
2021-11-07 02:05:04 +02:00
|
|
|
"github.com/goreleaser/goreleaser/internal/pipe/linkedin"
|
2021-09-29 01:18:35 +02:00
|
|
|
"github.com/goreleaser/goreleaser/internal/pipe/mattermost"
|
2020-07-09 22:40:37 +02:00
|
|
|
"github.com/goreleaser/goreleaser/internal/pipe/milestone"
|
2018-10-26 16:03:55 +02:00
|
|
|
"github.com/goreleaser/goreleaser/internal/pipe/nfpm"
|
|
|
|
"github.com/goreleaser/goreleaser/internal/pipe/project"
|
2021-08-31 15:49:22 +02:00
|
|
|
"github.com/goreleaser/goreleaser/internal/pipe/reddit"
|
2018-10-26 16:03:55 +02:00
|
|
|
"github.com/goreleaser/goreleaser/internal/pipe/release"
|
2021-12-12 05:21:51 +02:00
|
|
|
"github.com/goreleaser/goreleaser/internal/pipe/sbom"
|
2018-10-26 16:03:55 +02:00
|
|
|
"github.com/goreleaser/goreleaser/internal/pipe/scoop"
|
|
|
|
"github.com/goreleaser/goreleaser/internal/pipe/sign"
|
2021-09-01 21:47:53 +02:00
|
|
|
"github.com/goreleaser/goreleaser/internal/pipe/slack"
|
2021-09-15 20:38:58 +02:00
|
|
|
"github.com/goreleaser/goreleaser/internal/pipe/smtp"
|
2018-10-26 16:03:55 +02:00
|
|
|
"github.com/goreleaser/goreleaser/internal/pipe/snapcraft"
|
|
|
|
"github.com/goreleaser/goreleaser/internal/pipe/snapshot"
|
2020-04-12 16:47:46 +02:00
|
|
|
"github.com/goreleaser/goreleaser/internal/pipe/sourcearchive"
|
2021-09-13 00:59:26 +02:00
|
|
|
"github.com/goreleaser/goreleaser/internal/pipe/teams"
|
2021-10-07 15:01:31 +02:00
|
|
|
"github.com/goreleaser/goreleaser/internal/pipe/telegram"
|
2021-05-25 05:19:06 +02:00
|
|
|
"github.com/goreleaser/goreleaser/internal/pipe/twitter"
|
2021-10-12 19:55:43 +02:00
|
|
|
"github.com/goreleaser/goreleaser/internal/pipe/universalbinary"
|
2022-01-08 19:46:27 +02:00
|
|
|
"github.com/goreleaser/goreleaser/internal/pipe/webhook"
|
2018-10-26 16:03:55 +02:00
|
|
|
"github.com/goreleaser/goreleaser/pkg/context"
|
|
|
|
)
|
|
|
|
|
|
|
|
// Defaulter can be implemented by a Piper to set default values for its
|
|
|
|
// configuration.
|
|
|
|
type Defaulter interface {
|
|
|
|
fmt.Stringer
|
|
|
|
|
|
|
|
// Default sets the configuration defaults
|
|
|
|
Default(ctx *context.Context) error
|
|
|
|
}
|
|
|
|
|
2020-11-27 04:16:08 +02:00
|
|
|
// Defaulters is the list of defaulters.
|
2018-11-08 02:04:49 +02:00
|
|
|
// nolint: gochecknoglobals
|
2018-10-26 16:03:55 +02:00
|
|
|
var Defaulters = []Defaulter{
|
|
|
|
snapshot.Pipe{},
|
|
|
|
release.Pipe{},
|
|
|
|
project.Pipe{},
|
2021-03-31 02:06:25 +02:00
|
|
|
gomod.Pipe{},
|
2018-10-26 16:03:55 +02:00
|
|
|
build.Pipe{},
|
2021-10-12 19:55:43 +02:00
|
|
|
universalbinary.Pipe{},
|
2020-04-12 16:47:46 +02:00
|
|
|
sourcearchive.Pipe{},
|
2019-04-16 15:19:15 +02:00
|
|
|
archive.Pipe{},
|
2018-10-26 16:03:55 +02:00
|
|
|
nfpm.Pipe{},
|
|
|
|
snapcraft.Pipe{},
|
|
|
|
checksums.Pipe{},
|
|
|
|
sign.Pipe{},
|
2021-08-24 16:22:09 +02:00
|
|
|
sign.DockerPipe{},
|
2021-12-12 05:21:51 +02:00
|
|
|
sbom.Pipe{},
|
2018-10-26 16:03:55 +02:00
|
|
|
docker.Pipe{},
|
2021-07-04 01:00:42 +02:00
|
|
|
docker.ManifestPipe{},
|
2018-10-26 16:03:55 +02:00
|
|
|
artifactory.Pipe{},
|
2019-06-05 15:51:01 +02:00
|
|
|
blob.Pipe{},
|
2022-01-20 19:59:39 +02:00
|
|
|
aur.Pipe{},
|
2018-10-26 16:03:55 +02:00
|
|
|
brew.Pipe{},
|
2021-11-11 14:37:58 +02:00
|
|
|
krew.Pipe{},
|
2021-09-29 01:16:39 +02:00
|
|
|
gofish.Pipe{},
|
2018-10-26 16:03:55 +02:00
|
|
|
scoop.Pipe{},
|
2021-09-11 19:36:40 +02:00
|
|
|
discord.Pipe{},
|
2021-08-31 15:48:45 +02:00
|
|
|
reddit.Pipe{},
|
2021-09-01 21:46:25 +02:00
|
|
|
slack.Pipe{},
|
2021-09-13 00:59:26 +02:00
|
|
|
teams.Pipe{},
|
2021-09-11 19:36:40 +02:00
|
|
|
twitter.Pipe{},
|
2021-09-15 20:38:58 +02:00
|
|
|
smtp.Pipe{},
|
2021-09-29 01:18:35 +02:00
|
|
|
mattermost.Pipe{},
|
2020-07-09 22:40:37 +02:00
|
|
|
milestone.Pipe{},
|
2021-11-07 02:04:08 +02:00
|
|
|
linkedin.Pipe{},
|
2021-10-07 15:01:31 +02:00
|
|
|
telegram.Pipe{},
|
2022-01-08 19:46:27 +02:00
|
|
|
webhook.Pipe{},
|
2018-10-26 16:03:55 +02:00
|
|
|
}
|