1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-03-17 20:47:50 +02:00

source pipe dont need to be a pointer

This commit is contained in:
Carlos Alexandro Becker 2017-01-23 09:47:35 -02:00
parent d44e2b51d1
commit abdf65c57c
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940

View File

@ -20,13 +20,13 @@ var ErrWrongRef = errors.New("current tag ref is different from HEAD ref, checko
type Pipe struct{}
// Description of the pipe
func (p *Pipe) Description() string {
func (p Pipe) Description() string {
return "Validating current git state"
}
// Run errors we the repo is dirty or if the current ref is different from the
// tag ref
func (p *Pipe) Run(ctx *context.Context) error {
func (p Pipe) Run(ctx *context.Context) error {
cmd := exec.Command("git", "diff-index", "--quiet", "HEAD", "--")
if err := cmd.Run(); err != nil {
return ErrDirty