Merge pull request #408 from gliptak/digester1

Point digest import to opencontainers/go-digest
This commit is contained in:
Stephen Day 2017-01-09 16:54:57 -08:00 committed by GitHub
commit e974c8678d
4 changed files with 6 additions and 6 deletions

View file

@ -8,8 +8,8 @@ import (
"sync"
"github.com/docker/containerd/log"
"github.com/docker/distribution/digest"
"github.com/nightlyone/lockfile"
"github.com/opencontainers/go-digest"
"github.com/pkg/errors"
)
@ -191,7 +191,7 @@ func (cs *ContentStore) Begin(ref string) (*ContentWriter, error) {
fp: fp,
lock: lock,
path: path,
digester: digest.Canonical.New(),
digester: digest.Canonical.Digester(),
}, nil
}
@ -205,7 +205,7 @@ func (cs *ContentStore) Resume(ref string) (*ContentWriter, error) {
return nil, err
}
digester := digest.Canonical.New()
digester := digest.Canonical.Digester()
// slow slow slow!!, send to goroutine or use resumable hashes
fp, err := os.Open(data)

View file

@ -15,7 +15,7 @@ import (
"runtime"
"testing"
"github.com/docker/distribution/digest"
"github.com/opencontainers/go-digest"
)
func TestContentWriter(t *testing.T) {

View file

@ -4,7 +4,7 @@ import (
"io"
"os"
"github.com/docker/distribution/digest"
"github.com/opencontainers/go-digest"
"github.com/pkg/errors"
)

View file

@ -5,8 +5,8 @@ import (
"os"
"path/filepath"
"github.com/docker/distribution/digest"
"github.com/nightlyone/lockfile"
"github.com/opencontainers/go-digest"
"github.com/pkg/errors"
)