mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-01-10 03:47:03 +02:00
76cfa61407
* refactor: remove fpm * refactor: remove fpm * refactor: .travis.yml * chore: more cleanup * chore: fix deploy
24 lines
552 B
Go
24 lines
552 B
Go
// Package fpm implements the Pipe interface providing FPM bindings.
|
|
package fpm
|
|
|
|
import (
|
|
"github.com/goreleaser/goreleaser/context"
|
|
"github.com/goreleaser/goreleaser/internal/deprecate"
|
|
)
|
|
|
|
// Pipe for fpm packaging
|
|
type Pipe struct{}
|
|
|
|
func (Pipe) String() string {
|
|
return "creating Linux packages with fpm"
|
|
}
|
|
|
|
// Default sets the pipe defaults
|
|
func (Pipe) Default(ctx *context.Context) error {
|
|
if len(ctx.Config.FPM.Formats) > 0 && len(ctx.Config.NFPM.Formats) == 0 {
|
|
deprecate.Notice("fpm")
|
|
ctx.Config.NFPM = ctx.Config.FPM
|
|
}
|
|
return nil
|
|
}
|