moby/builder/builder-next/adapters
Sebastiaan van Stijn 782fe1fe82
layer: ChecksumForGraphID: remove unused code for for migrating v1 layers
The only use is in `builder/builder-next/adapters/snapshot.EnsureLayer()`,
which always calls the function with an _empty_ `oldTarDataPath`;
7082aecd54/builder/builder-next/adapters/snapshot/layer.go (L81)

When called with an empty `oldTarDataPath`, this function was an alias for
`checksumForGraphIDNoTarsplit`, so let's make it that.

Note that this code was added in 500e77bad0, as
part of the migration from "v1" images to "v2" (content-addressable) images.

Given that the remaining code lives in a "migration" file, possibly more code
can be removed.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2024-01-08 12:28:41 +01:00
..
containerimage add //go:build directives to prevent downgrading to go1.16 language 2023-12-15 15:24:15 +01:00
localinlinecache migrate to new github.com/distribution/reference module 2023-09-05 12:09:26 +02:00
snapshot layer: ChecksumForGraphID: remove unused code for for migrating v1 layers 2024-01-08 12:28:41 +01:00