Like this one: pkg/manifests/manifests.go:449:4: importShadow: shadow of imported from 'github.com/containers/image/v5/manifest' package 'manifest' (gocritic) manifest, err := json.Marshal(&l.oci) ^ First, this is not always a "manifest" (sometimes it's OCI image index). Second, using two variables (manifest and manifestBytes) is not needed. Finally, rename manifest to res (stands for result). Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com> |
||
|---|---|---|
| .. | ||
| testdata | ||
| errors.go | ||
| manifests.go | ||
| manifests_test.go | ||