@@ -87,7 +87,7 @@ func PushTrustedReference(ctx context.Context, ioStreams command.Streams, repoIn
8787 if err := jsonstream .Display (ctx , in , ioStreams .Out ()); err != nil {
8888 return err
8989 }
90- fmt .Fprintln (ioStreams .Err (), "No tag specified, skipping trust metadata push" )
90+ _ , _ = fmt .Fprintln (ioStreams .Err (), "No tag specified, skipping trust metadata push" )
9191 return nil
9292 }
9393
@@ -103,7 +103,7 @@ func PushTrustedReference(ctx context.Context, ioStreams command.Streams, repoIn
103103 return errors .Errorf ("no targets found, provide a specific tag in order to sign it" )
104104 }
105105
106- fmt .Fprintln (ioStreams .Out (), "Signing and pushing trust metadata" )
106+ _ , _ = fmt .Fprintln (ioStreams .Out (), "Signing and pushing trust metadata" )
107107
108108 repo , err := trust .GetNotaryRepository (ioStreams .In (), ioStreams .Out (), command .UserAgent (), repoInfo , & authConfig , "push" , "pull" )
109109 if err != nil {
@@ -133,7 +133,7 @@ func PushTrustedReference(ctx context.Context, ioStreams command.Streams, repoIn
133133 if err := repo .Initialize ([]string {rootKeyID }, data .CanonicalSnapshotRole ); err != nil {
134134 return trust .NotaryError (repoInfo .Name .Name (), err )
135135 }
136- fmt .Fprintf (ioStreams .Out (), "Finished initializing %q\n " , repoInfo .Name .Name ())
136+ _ , _ = fmt .Fprintf (ioStreams .Out (), "Finished initializing %q\n " , repoInfo .Name .Name ())
137137 err = repo .AddTarget (target , data .CanonicalTargetsRole )
138138 case nil :
139139 // already initialized and we have successfully downloaded the latest metadata
@@ -151,7 +151,7 @@ func PushTrustedReference(ctx context.Context, ioStreams command.Streams, repoIn
151151 return trust .NotaryError (repoInfo .Name .Name (), err )
152152 }
153153
154- fmt .Fprintf (ioStreams .Out (), "Successfully signed %s:%s\n " , repoInfo .Name .Name (), tag )
154+ _ , _ = fmt .Fprintf (ioStreams .Out (), "Successfully signed %s:%s\n " , repoInfo .Name .Name (), tag )
155155 return nil
156156}
157157
@@ -181,7 +181,7 @@ func trustedPull(ctx context.Context, cli command.Cli, imgRefAndAuth trust.Image
181181 if displayTag != "" {
182182 displayTag = ":" + displayTag
183183 }
184- fmt .Fprintf (cli .Out (), "Pull (%d of %d): %s%s@%s\n " , i + 1 , len (refs ), reference .FamiliarName (ref ), displayTag , r .digest )
184+ _ , _ = fmt .Fprintf (cli .Out (), "Pull (%d of %d): %s%s@%s\n " , i + 1 , len (refs ), reference .FamiliarName (ref ), displayTag , r .digest )
185185
186186 trustedRef , err := reference .WithDigest (reference .TrimNamed (ref ), r .digest )
187187 if err != nil {
@@ -230,7 +230,7 @@ func getTrustedPullTargets(cli command.Cli, imgRefAndAuth trust.ImageRefAndAuth)
230230 for _ , tgt := range targets {
231231 t , err := convertTarget (tgt .Target )
232232 if err != nil {
233- fmt .Fprintf (cli .Err (), "Skipping target for %q\n " , reference .FamiliarName (ref ))
233+ _ , _ = fmt .Fprintf (cli .Err (), "Skipping target for %q\n " , reference .FamiliarName (ref ))
234234 continue
235235 }
236236 // Only list tags in the top level targets role or the releases delegation role - ignore
@@ -332,7 +332,7 @@ func TagTrusted(ctx context.Context, cli command.Cli, trustedRef reference.Canon
332332 familiarRef := reference .FamiliarString (ref )
333333 trustedFamiliarRef := reference .FamiliarString (trustedRef )
334334
335- fmt .Fprintf (cli .Err (), "Tagging %s as %s\n " , trustedFamiliarRef , familiarRef )
335+ _ , _ = fmt .Fprintf (cli .Err (), "Tagging %s as %s\n " , trustedFamiliarRef , familiarRef )
336336
337337 return cli .Client ().ImageTag (ctx , trustedFamiliarRef , familiarRef )
338338}
0 commit comments