From 40e1c9d4fa1cb131e9dda4f084fffcadd15ef6e3 Mon Sep 17 00:00:00 2001 From: Richard Jones Date: Wed, 22 Dec 2021 17:01:46 -0700 Subject: [PATCH] fmt.Sprint Signed-off-by: Richard Jones --- plan/task/httpfetch.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plan/task/httpfetch.go b/plan/task/httpfetch.go index 5611f68d..d70caffe 100644 --- a/plan/task/httpfetch.go +++ b/plan/task/httpfetch.go @@ -2,6 +2,7 @@ package task import ( "context" + "fmt" "io/fs" "net/url" @@ -54,11 +55,11 @@ func (c httpFetchTask) Run(ctx context.Context, pctx *plancontext.Context, s sol httpOpts = append(httpOpts, llb.Filename(httpFetch.Dest)) } if httpFetch.Permissions != 0 { - lg.Debug().Str("permissions", string(httpFetch.Permissions)).Msg("adding http option") + lg.Debug().Str("permissions", fmt.Sprint(httpFetch.Permissions)).Msg("adding http option") httpOpts = append(httpOpts, llb.Chmod(fs.FileMode(httpFetch.Permissions))) } if httpFetch.UID != 0 && httpFetch.GID != 0 { - lg.Debug().Str("uid", string(httpFetch.UID)).Str("gid", string(httpFetch.GID)).Msg("adding http option") + lg.Debug().Str("uid", fmt.Sprint(httpFetch.UID)).Str("gid", fmt.Sprint(httpFetch.GID)).Msg("adding http option") httpOpts = append(httpOpts, llb.Chown(httpFetch.UID, httpFetch.GID)) }