Merge pull request #1746 from AkihiroSuda/split-differ-interface
diff: resplit Applier from Differ
This commit is contained in:
@@ -2,7 +2,7 @@ package main
|
||||
|
||||
// register containerd builtins here
|
||||
import (
|
||||
_ "github.com/containerd/containerd/diff/walking"
|
||||
_ "github.com/containerd/containerd/diff/walking/plugin"
|
||||
_ "github.com/containerd/containerd/gc/scheduler"
|
||||
_ "github.com/containerd/containerd/services/containers"
|
||||
_ "github.com/containerd/containerd/services/content"
|
||||
|
||||
@@ -129,7 +129,7 @@ var diffCommand = cli.Command{
|
||||
}
|
||||
|
||||
if idB == "" {
|
||||
desc, err = rootfs.Diff(ctx, idA, snapshotter, client.DiffService(), opts...)
|
||||
desc, err = rootfs.CreateDiff(ctx, idA, snapshotter, client.DiffService(), opts...)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
@@ -145,7 +145,7 @@ var diffCommand = cli.Command{
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
desc, err = ds.DiffMounts(ctx, a, b, opts...)
|
||||
desc, err = ds.Compare(ctx, a, b, opts...)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user