mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-01-16 03:52:12 +02:00
fix: using token log message
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
This commit is contained in:
parent
43fbf18aaa
commit
5e27651dae
4
internal/pipe/env/env.go
vendored
4
internal/pipe/env/env.go
vendored
@ -160,7 +160,7 @@ func checkErrors(ctx *context.Context, noTokens, noTokenErrs bool, gitlabTokenEr
|
||||
func loadEnv(env, path string) (string, error) {
|
||||
val := os.Getenv(env)
|
||||
if val != "" {
|
||||
log.Infof("using token from %q", logext.Keyword("$"+env))
|
||||
log.Infof("using token from %s", logext.Keyword("$"+env))
|
||||
return val, nil
|
||||
}
|
||||
path, err := homedir.Expand(path)
|
||||
@ -175,7 +175,7 @@ func loadEnv(env, path string) (string, error) {
|
||||
return "", err
|
||||
}
|
||||
defer f.Close()
|
||||
log.Infof("using token from %q", logext.Keyword(path))
|
||||
log.Infof("using token from %s", logext.Keyword(path))
|
||||
bts, _, err := bufio.NewReader(f).ReadLine()
|
||||
return string(bts), err
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user