moby/builder
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
..
builder-next layer: ChecksumForGraphID: remove unused code for for migrating v1 layers 2024-01-08 12:28:41 +01:00
dockerfile builder: remove redundant ExecBackend.ContainerKill() 2024-01-05 17:36:41 +01:00
remotecontext pkg/containerfs: deprecate ResolveScopedPath 2024-01-02 15:32:31 +01:00
builder.go builder: remove redundant ExecBackend.ContainerKill() 2024-01-05 17:36:41 +01:00