1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-24 04:16:27 +02:00

24 lines
552 B
Go
Raw Normal View History

2017-04-14 15:39:32 -03:00
// Package fpm implements the Pipe interface providing FPM bindings.
2017-01-29 21:55:32 -02:00
package fpm
import (
"github.com/goreleaser/goreleaser/context"
"github.com/goreleaser/goreleaser/internal/deprecate"
2017-12-27 09:58:42 -02:00
)
2017-01-29 21:55:32 -02:00
// 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
2017-01-29 21:55:32 -02:00
}