mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-01-10 03:47:03 +02:00
f2281e8ff2
This PR adds support for generating the structure used to pack and push Chocolatey Packages. And will solve the #3154 Is not ready for merge yet, but has the main structure, and ready for comments. Accordingly to Chocolatey, in order to build a package, it's necessary a `.nuspec` and `chocolateyinstall.ps1` files at least, having these ones, we could pack and distribute without adding the binary inside the final package and that was implemented here. To complete, will be necessary to define the package build and distribute, however will be required to have Chocolatey installed (Windows Only). One of alternatives that I thought was, publish the files like Scoop and Brew in a separate repository, and there we could use `chocolatey` through [crazy-max/ghaction-chocolatey](https://github.com/crazy-max/ghaction-chocolatey). Chocolatey has a lot of good examples of repositories: https://github.com/chocolatey-community/chocolatey-packages/tree/master/automatic/curl A final compilation of the missing parts: - [x] How to pack and push (chocolatey) - [x] Documentation Sorry for the long description😄 All feedback very welcome! Co-authored-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
90 lines
2.9 KiB
Go
90 lines
2.9 KiB
Go
// 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"
|
|
"github.com/goreleaser/goreleaser/internal/pipe/aur"
|
|
"github.com/goreleaser/goreleaser/internal/pipe/blob"
|
|
"github.com/goreleaser/goreleaser/internal/pipe/brew"
|
|
"github.com/goreleaser/goreleaser/internal/pipe/build"
|
|
"github.com/goreleaser/goreleaser/internal/pipe/checksums"
|
|
"github.com/goreleaser/goreleaser/internal/pipe/chocolatey"
|
|
"github.com/goreleaser/goreleaser/internal/pipe/discord"
|
|
"github.com/goreleaser/goreleaser/internal/pipe/docker"
|
|
"github.com/goreleaser/goreleaser/internal/pipe/gomod"
|
|
"github.com/goreleaser/goreleaser/internal/pipe/krew"
|
|
"github.com/goreleaser/goreleaser/internal/pipe/linkedin"
|
|
"github.com/goreleaser/goreleaser/internal/pipe/mattermost"
|
|
"github.com/goreleaser/goreleaser/internal/pipe/milestone"
|
|
"github.com/goreleaser/goreleaser/internal/pipe/nfpm"
|
|
"github.com/goreleaser/goreleaser/internal/pipe/project"
|
|
"github.com/goreleaser/goreleaser/internal/pipe/reddit"
|
|
"github.com/goreleaser/goreleaser/internal/pipe/release"
|
|
"github.com/goreleaser/goreleaser/internal/pipe/sbom"
|
|
"github.com/goreleaser/goreleaser/internal/pipe/scoop"
|
|
"github.com/goreleaser/goreleaser/internal/pipe/sign"
|
|
"github.com/goreleaser/goreleaser/internal/pipe/slack"
|
|
"github.com/goreleaser/goreleaser/internal/pipe/smtp"
|
|
"github.com/goreleaser/goreleaser/internal/pipe/snapcraft"
|
|
"github.com/goreleaser/goreleaser/internal/pipe/snapshot"
|
|
"github.com/goreleaser/goreleaser/internal/pipe/sourcearchive"
|
|
"github.com/goreleaser/goreleaser/internal/pipe/teams"
|
|
"github.com/goreleaser/goreleaser/internal/pipe/telegram"
|
|
"github.com/goreleaser/goreleaser/internal/pipe/twitter"
|
|
"github.com/goreleaser/goreleaser/internal/pipe/universalbinary"
|
|
"github.com/goreleaser/goreleaser/internal/pipe/webhook"
|
|
"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
|
|
}
|
|
|
|
// Defaulters is the list of defaulters.
|
|
// nolint: gochecknoglobals
|
|
var Defaulters = []Defaulter{
|
|
snapshot.Pipe{},
|
|
release.Pipe{},
|
|
project.Pipe{},
|
|
gomod.Pipe{},
|
|
build.Pipe{},
|
|
universalbinary.Pipe{},
|
|
sourcearchive.Pipe{},
|
|
archive.Pipe{},
|
|
nfpm.Pipe{},
|
|
snapcraft.Pipe{},
|
|
checksums.Pipe{},
|
|
sign.Pipe{},
|
|
sign.DockerPipe{},
|
|
sbom.Pipe{},
|
|
docker.Pipe{},
|
|
docker.ManifestPipe{},
|
|
artifactory.Pipe{},
|
|
blob.Pipe{},
|
|
aur.Pipe{},
|
|
brew.Pipe{},
|
|
krew.Pipe{},
|
|
scoop.Pipe{},
|
|
discord.Pipe{},
|
|
reddit.Pipe{},
|
|
slack.Pipe{},
|
|
teams.Pipe{},
|
|
twitter.Pipe{},
|
|
smtp.Pipe{},
|
|
mattermost.Pipe{},
|
|
milestone.Pipe{},
|
|
linkedin.Pipe{},
|
|
telegram.Pipe{},
|
|
webhook.Pipe{},
|
|
chocolatey.Pipe{},
|
|
}
|