From ff0fdf3520ec597dfff4325d7b5fe1204bf2dd3b Mon Sep 17 00:00:00 2001 From: Carlos Tadeu Panato Junior Date: Tue, 23 Nov 2021 13:25:15 +0100 Subject: [PATCH] fix: update strings when using a custom distribution directory (#2689) Signed-off-by: Carlos Panato --- internal/pipe/dist/dist.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/pipe/dist/dist.go b/internal/pipe/dist/dist.go index f6e3afd68..9a9dce1df 100644 --- a/internal/pipe/dist/dist.go +++ b/internal/pipe/dist/dist.go @@ -14,14 +14,14 @@ import ( type Pipe struct{} func (Pipe) String() string { - return "checking ./dist" + return "checking distribution directory" } // Run the pipe. func (Pipe) Run(ctx *context.Context) (err error) { _, err = os.Stat(ctx.Config.Dist) if os.IsNotExist(err) { - log.Debug("./dist doesn't exist, creating empty folder") + log.Debugf("%s doesn't exist, creating empty folder", ctx.Config.Dist) return mkdir(ctx) } if ctx.RmDist { @@ -37,13 +37,13 @@ func (Pipe) Run(ctx *context.Context) (err error) { return } if len(files) != 0 { - log.Debugf("there are %d files on ./dist", len(files)) + log.Debugf("there are %d files on %s", len(files), ctx.Config.Dist) return fmt.Errorf( "%s is not empty, remove it before running goreleaser or use the --rm-dist flag", ctx.Config.Dist, ) } - log.Debug("./dist is empty") + log.Debugf("%s is empty", ctx.Config.Dist) return mkdir(ctx) }