fix: use correct path variable for logging in check command (#4756)

This trivial PR fixes a minor cosmetic issue in the `check` command.

Before this fix, GoReleaser would not show the auto-detected config path
under check when no args are provided:
```
$ goreleaser check
  • checking                                 path=
  • 1 configuration file(s) validated
  • thanks for using goreleaser!
```

After this check, GoReleaser correctly shows any auto-detected config
paths:
```
$ goreleaser check
  • checking                                 path=.goreleaser.yaml
  • 1 configuration file(s) validated
  • thanks for using goreleaser!
```
This commit is contained in:
Hugo Hromic
2024-04-04 09:32:05 -03:00
committed by GitHub
parent 2b1fa09a07
commit bf79c2cf91
+1 -1
View File
@@ -47,7 +47,7 @@ func newCheckCmd() *checkCmd {
ctx.Deprecated = root.deprecated
if err := ctrlc.Default.Run(ctx, func() error {
log.WithField("path", config).
log.WithField("path", path).
Info(boldStyle.Render("checking"))
return defaults.Pipe{}.Run(ctx)