Browse code

plugin: Manager.getManifestDescriptor: fix shadowed variable (govet)

plugin/backend_linux.go:527:2: shadow: declaration of "manifest" shadows declaration at line 473 (govet)
manifest, err := buildManifest(ctx, pm.blobStore, p.Config, p.Blobsums)
^

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>

Sebastiaan van Stijn authored on 2024/11/06 03:14:55
Showing 1 changed files
... ...
@@ -524,12 +524,12 @@ func (pm *Manager) getManifestDescriptor(ctx context.Context, p *v2.Plugin) (oci
524 524
 	}
525 525
 	logger.Info("Building a new plugin manifest")
526 526
 
527
-	manifest, err := buildManifest(ctx, pm.blobStore, p.Config, p.Blobsums)
527
+	mfst, err := buildManifest(ctx, pm.blobStore, p.Config, p.Blobsums)
528 528
 	if err != nil {
529 529
 		return ocispec.Descriptor{}, err
530 530
 	}
531 531
 
532
-	desc, err := writeManifest(ctx, pm.blobStore, &manifest)
532
+	desc, err := writeManifest(ctx, pm.blobStore, &mfst)
533 533
 	if err != nil {
534 534
 		return desc, err
535 535
 	}