mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-01-30 04:50:45 +02:00
fix: build log print relative path instead of abs
all other logs print relative paths, only the build logs are printing the abs path. this makes things more even. Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
This commit is contained in:
parent
8f74c871bb
commit
9df62d87ec
@ -198,14 +198,15 @@ func buildOptionsForTarget(ctx *context.Context, build config.Build, target stri
|
|||||||
if build.NoUniqueDistDir {
|
if build.NoUniqueDistDir {
|
||||||
dir = ""
|
dir = ""
|
||||||
}
|
}
|
||||||
path, err := filepath.Abs(filepath.Join(ctx.Config.Dist, dir, name))
|
relpath := filepath.Join(ctx.Config.Dist, dir, name)
|
||||||
|
path, err := filepath.Abs(relpath)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
buildOpts.Path = path
|
buildOpts.Path = path
|
||||||
buildOpts.Name = name
|
buildOpts.Name = name
|
||||||
|
|
||||||
log.WithField("binary", buildOpts.Path).Info("building")
|
log.WithField("binary", relpath).Info("building")
|
||||||
return &buildOpts, nil
|
return &buildOpts, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user