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:
parent
d44e2b51d1
commit
abdf65c57c
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user