1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-10 03:47:03 +02:00
goreleaser/pipeline/fpm/fpm.go
Carlos Alexandro Becker 76cfa61407
refactor: remove fpm in favor of nfpm (#567)
* refactor: remove fpm

* refactor: remove fpm

* refactor: .travis.yml

* chore: more cleanup

* chore: fix deploy
2018-02-26 18:49:58 -03:00

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
}