mirror of
https://github.com/containers/skopeo.git
synced 2025-06-23 13:27:45 +00:00
Bump github.com/containers/storage from 1.15.2 to 1.15.3
Bumps [github.com/containers/storage](https://github.com/containers/storage) from 1.15.2 to 1.15.3. - [Release notes](https://github.com/containers/storage/releases) - [Changelog](https://github.com/containers/storage/blob/master/docs/containers-storage-changes.md) - [Commits](https://github.com/containers/storage/compare/v1.15.2...v1.15.3) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
This commit is contained in:
parent
c3e6b4f917
commit
17b921cbbc
2
go.mod
2
go.mod
@ -6,7 +6,7 @@ require (
|
|||||||
github.com/containers/buildah v1.11.6
|
github.com/containers/buildah v1.11.6
|
||||||
github.com/containers/image/v5 v5.0.1-0.20191126085826-502848a1358b
|
github.com/containers/image/v5 v5.0.1-0.20191126085826-502848a1358b
|
||||||
github.com/containers/ocicrypt v0.0.0-20190930154801-b87a4a69c741
|
github.com/containers/ocicrypt v0.0.0-20190930154801-b87a4a69c741
|
||||||
github.com/containers/storage v1.15.2
|
github.com/containers/storage v1.15.3
|
||||||
github.com/docker/docker v1.4.2-0.20191101170500-ac7306503d23
|
github.com/docker/docker v1.4.2-0.20191101170500-ac7306503d23
|
||||||
github.com/dsnet/compress v0.0.1 // indirect
|
github.com/dsnet/compress v0.0.1 // indirect
|
||||||
github.com/go-check/check v0.0.0-20180628173108-788fd7840127
|
github.com/go-check/check v0.0.0-20180628173108-788fd7840127
|
||||||
|
2
go.sum
2
go.sum
@ -69,6 +69,8 @@ github.com/containers/storage v1.15.1 h1:yE0lkMG/sIj+dvc/FDGT9KmPi/wXTKGqoLJnNy1
|
|||||||
github.com/containers/storage v1.15.1/go.mod h1:6BYP6xBTstj0E9dY6mYFgn3BRBRPRSVqfhAqKIWkGpE=
|
github.com/containers/storage v1.15.1/go.mod h1:6BYP6xBTstj0E9dY6mYFgn3BRBRPRSVqfhAqKIWkGpE=
|
||||||
github.com/containers/storage v1.15.2 h1:hLgafU4tuyQk/smMkXZfHTS8FtAQsqQvfWCp4bsgjuw=
|
github.com/containers/storage v1.15.2 h1:hLgafU4tuyQk/smMkXZfHTS8FtAQsqQvfWCp4bsgjuw=
|
||||||
github.com/containers/storage v1.15.2/go.mod h1:v0lq/3f+cXH3Y/HiDaFYRR0zilwDve7I4W7U5xQxvF8=
|
github.com/containers/storage v1.15.2/go.mod h1:v0lq/3f+cXH3Y/HiDaFYRR0zilwDve7I4W7U5xQxvF8=
|
||||||
|
github.com/containers/storage v1.15.3 h1:+lFSQZnnKUFyUEtguIgdoQLJfWSuYz+j/wg5GxLtsN4=
|
||||||
|
github.com/containers/storage v1.15.3/go.mod h1:v0lq/3f+cXH3Y/HiDaFYRR0zilwDve7I4W7U5xQxvF8=
|
||||||
github.com/coreos/etcd v3.3.10+incompatible/go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc32PjwdhPthX9715RE=
|
github.com/coreos/etcd v3.3.10+incompatible/go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc32PjwdhPthX9715RE=
|
||||||
github.com/coreos/go-etcd v2.0.0+incompatible/go.mod h1:Jez6KQU2B/sWsbdaef3ED8NzMklzPG4d5KIOhIy30Tk=
|
github.com/coreos/go-etcd v2.0.0+incompatible/go.mod h1:Jez6KQU2B/sWsbdaef3ED8NzMklzPG4d5KIOhIy30Tk=
|
||||||
github.com/coreos/go-semver v0.2.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk=
|
github.com/coreos/go-semver v0.2.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk=
|
||||||
|
2
vendor/github.com/containers/storage/VERSION
generated
vendored
2
vendor/github.com/containers/storage/VERSION
generated
vendored
@ -1 +1 @@
|
|||||||
1.15.2
|
1.15.3
|
||||||
|
9
vendor/github.com/containers/storage/drivers/overlay/overlay.go
generated
vendored
9
vendor/github.com/containers/storage/drivers/overlay/overlay.go
generated
vendored
@ -676,9 +676,6 @@ func (d *Driver) getLower(parent string) (string, error) {
|
|||||||
parentLowers := strings.Split(string(parentLower), ":")
|
parentLowers := strings.Split(string(parentLower), ":")
|
||||||
lowers = append(lowers, parentLowers...)
|
lowers = append(lowers, parentLowers...)
|
||||||
}
|
}
|
||||||
if len(lowers) > maxDepth {
|
|
||||||
return "", errors.New("max depth exceeded")
|
|
||||||
}
|
|
||||||
return strings.Join(lowers, ":"), nil
|
return strings.Join(lowers, ":"), nil
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -828,6 +825,10 @@ func (d *Driver) get(id string, disableShifting bool, options graphdriver.MountO
|
|||||||
if err != nil && !os.IsNotExist(err) {
|
if err != nil && !os.IsNotExist(err) {
|
||||||
return "", err
|
return "", err
|
||||||
}
|
}
|
||||||
|
splitLowers := strings.Split(string(lowers), ":")
|
||||||
|
if len(splitLowers) > maxDepth {
|
||||||
|
return "", errors.New("max depth exceeded")
|
||||||
|
}
|
||||||
|
|
||||||
// absLowers is the list of lowers as absolute paths, which works well with additional stores.
|
// absLowers is the list of lowers as absolute paths, which works well with additional stores.
|
||||||
absLowers := []string{}
|
absLowers := []string{}
|
||||||
@ -851,7 +852,7 @@ func (d *Driver) get(id string, disableShifting bool, options graphdriver.MountO
|
|||||||
|
|
||||||
// For each lower, resolve its path, and append it and any additional diffN
|
// For each lower, resolve its path, and append it and any additional diffN
|
||||||
// directories to the lowers list.
|
// directories to the lowers list.
|
||||||
for _, l := range strings.Split(string(lowers), ":") {
|
for _, l := range splitLowers {
|
||||||
if l == "" {
|
if l == "" {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
6
vendor/github.com/containers/storage/layers.go
generated
vendored
6
vendor/github.com/containers/storage/layers.go
generated
vendored
@ -475,7 +475,7 @@ func (r *layerStore) saveMounts() error {
|
|||||||
return r.loadMounts()
|
return r.loadMounts()
|
||||||
}
|
}
|
||||||
|
|
||||||
func newLayerStore(rundir string, layerdir string, driver drivers.Driver, uidMap, gidMap []idtools.IDMap) (LayerStore, error) {
|
func (s *store) newLayerStore(rundir string, layerdir string, driver drivers.Driver) (LayerStore, error) {
|
||||||
if err := os.MkdirAll(rundir, 0700); err != nil {
|
if err := os.MkdirAll(rundir, 0700); err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
@ -501,8 +501,8 @@ func newLayerStore(rundir string, layerdir string, driver drivers.Driver, uidMap
|
|||||||
byid: make(map[string]*Layer),
|
byid: make(map[string]*Layer),
|
||||||
bymount: make(map[string]*Layer),
|
bymount: make(map[string]*Layer),
|
||||||
byname: make(map[string]*Layer),
|
byname: make(map[string]*Layer),
|
||||||
uidMap: copyIDMap(uidMap),
|
uidMap: copyIDMap(s.uidMap),
|
||||||
gidMap: copyIDMap(gidMap),
|
gidMap: copyIDMap(s.gidMap),
|
||||||
}
|
}
|
||||||
if err := rlstore.Load(); err != nil {
|
if err := rlstore.Load(); err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
16
vendor/github.com/containers/storage/pkg/tarlog/tarlogger.go
generated
vendored
16
vendor/github.com/containers/storage/pkg/tarlog/tarlogger.go
generated
vendored
@ -11,7 +11,6 @@ import (
|
|||||||
type tarLogger struct {
|
type tarLogger struct {
|
||||||
writer *io.PipeWriter
|
writer *io.PipeWriter
|
||||||
closeMutex *sync.Mutex
|
closeMutex *sync.Mutex
|
||||||
stateMutex *sync.Mutex
|
|
||||||
closed bool
|
closed bool
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -22,7 +21,6 @@ func NewLogger(logger func(*tar.Header)) (io.WriteCloser, error) {
|
|||||||
t := &tarLogger{
|
t := &tarLogger{
|
||||||
writer: writer,
|
writer: writer,
|
||||||
closeMutex: new(sync.Mutex),
|
closeMutex: new(sync.Mutex),
|
||||||
stateMutex: new(sync.Mutex),
|
|
||||||
closed: false,
|
closed: false,
|
||||||
}
|
}
|
||||||
tr := tar.NewReader(reader)
|
tr := tar.NewReader(reader)
|
||||||
@ -35,12 +33,9 @@ func NewLogger(logger func(*tar.Header)) (io.WriteCloser, error) {
|
|||||||
|
|
||||||
}
|
}
|
||||||
// Make sure to avoid writes after the reader has been closed.
|
// Make sure to avoid writes after the reader has been closed.
|
||||||
t.stateMutex.Lock()
|
|
||||||
t.closed = true
|
|
||||||
if err := reader.Close(); err != nil {
|
if err := reader.Close(); err != nil {
|
||||||
logrus.Errorf("error closing tarlogger reader: %v", err)
|
logrus.Errorf("error closing tarlogger reader: %v", err)
|
||||||
}
|
}
|
||||||
t.stateMutex.Unlock()
|
|
||||||
// Unblock the Close().
|
// Unblock the Close().
|
||||||
t.closeMutex.Unlock()
|
t.closeMutex.Unlock()
|
||||||
}()
|
}()
|
||||||
@ -48,16 +43,19 @@ func NewLogger(logger func(*tar.Header)) (io.WriteCloser, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (t *tarLogger) Write(b []byte) (int, error) {
|
func (t *tarLogger) Write(b []byte) (int, error) {
|
||||||
t.stateMutex.Lock()
|
|
||||||
if t.closed {
|
if t.closed {
|
||||||
// We cannot use os.Pipe() as this alters the tar's digest. Using
|
// We cannot use os.Pipe() as this alters the tar's digest. Using
|
||||||
// io.Pipe() requires this workaround as it does not allow for writes
|
// io.Pipe() requires this workaround as it does not allow for writes
|
||||||
// after close.
|
// after close.
|
||||||
t.stateMutex.Unlock()
|
|
||||||
return len(b), nil
|
return len(b), nil
|
||||||
}
|
}
|
||||||
t.stateMutex.Unlock()
|
n, err := t.writer.Write(b)
|
||||||
return t.writer.Write(b)
|
if err == io.ErrClosedPipe {
|
||||||
|
// The pipe got closed. Track it and avoid to call Write in future.
|
||||||
|
t.closed = true
|
||||||
|
return len(b), nil
|
||||||
|
}
|
||||||
|
return n, err
|
||||||
}
|
}
|
||||||
|
|
||||||
func (t *tarLogger) Close() error {
|
func (t *tarLogger) Close() error {
|
||||||
|
11
vendor/github.com/containers/storage/store.go
generated
vendored
11
vendor/github.com/containers/storage/store.go
generated
vendored
@ -667,15 +667,6 @@ func (s *store) load() error {
|
|||||||
s.graphDriverName = driver.String()
|
s.graphDriverName = driver.String()
|
||||||
driverPrefix := s.graphDriverName + "-"
|
driverPrefix := s.graphDriverName + "-"
|
||||||
|
|
||||||
rls, err := s.LayerStore()
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
s.layerStore = rls
|
|
||||||
if _, err := s.ROLayerStores(); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
|
|
||||||
gipath := filepath.Join(s.graphRoot, driverPrefix+"images")
|
gipath := filepath.Join(s.graphRoot, driverPrefix+"images")
|
||||||
if err := os.MkdirAll(gipath, 0700); err != nil {
|
if err := os.MkdirAll(gipath, 0700); err != nil {
|
||||||
return err
|
return err
|
||||||
@ -774,7 +765,7 @@ func (s *store) LayerStore() (LayerStore, error) {
|
|||||||
if err := os.MkdirAll(glpath, 0700); err != nil {
|
if err := os.MkdirAll(glpath, 0700); err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
rls, err := newLayerStore(rlpath, glpath, driver, s.uidMap, s.gidMap)
|
rls, err := s.newLayerStore(rlpath, glpath, driver)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
2
vendor/modules.txt
vendored
2
vendor/modules.txt
vendored
@ -87,7 +87,7 @@ github.com/containers/ocicrypt/keywrap/pgp
|
|||||||
github.com/containers/ocicrypt/keywrap/pkcs7
|
github.com/containers/ocicrypt/keywrap/pkcs7
|
||||||
github.com/containers/ocicrypt/spec
|
github.com/containers/ocicrypt/spec
|
||||||
github.com/containers/ocicrypt/utils
|
github.com/containers/ocicrypt/utils
|
||||||
# github.com/containers/storage v1.15.2
|
# github.com/containers/storage v1.15.3
|
||||||
github.com/containers/storage
|
github.com/containers/storage
|
||||||
github.com/containers/storage/drivers
|
github.com/containers/storage/drivers
|
||||||
github.com/containers/storage/drivers/aufs
|
github.com/containers/storage/drivers/aufs
|
||||||
|
Loading…
Reference in New Issue
Block a user