1
0
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:
Carlos Alexandro Becker 2023-07-26 00:34:40 +00:00
parent 43fbf18aaa
commit 5e27651dae
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940

View File

@ -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
}