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