diff --git a/Gopkg.lock b/Gopkg.lock index 1fd8e4e4c..fb33774a2 100644 --- a/Gopkg.lock +++ b/Gopkg.lock @@ -15,7 +15,7 @@ "pkg/image", "pkg/util" ] - revision = "ce3228b4afba2b2fb9b42c416c8f59a14ee7c1dd" + revision = "6a521891eafa833a08adf664edb6e67b18220ea7" source = "github.com/GoogleCloudPlatform/container-diff" [[projects]] @@ -119,7 +119,7 @@ "pkg/system", "pkg/truncindex" ] - revision = "66a38bb219e9776482c18e8c02f438e5112916f1" + revision = "1e5ce40cdb84ab66e26186435b1273e04b879fef" [[projects]] branch = "master" @@ -370,7 +370,7 @@ "nfs", "xfs" ] - revision = "d274e363d5759d1c916232217be421f1cc89c5fe" + revision = "1c7ff3de94ae006f58cba483a4c9c6d7c61e1d98" [[projects]] name = "github.com/sirupsen/logrus" @@ -419,7 +419,7 @@ "openpgp/s2k", "ssh/terminal" ] - revision = "91a49db82a88618983a78a06c1cbd4e00ab749ab" + revision = "85f98707c97e11569271e4d9b3d397e079c4f4d0" [[projects]] branch = "master" @@ -433,7 +433,7 @@ "lex/httplex", "proxy" ] - revision = "22ae77b79946ea320088417e4d50825671d82d57" + revision = "07e8617a6db2368fa55d4616f371ee1b1403c817" [[projects]] branch = "master" @@ -442,7 +442,7 @@ "unix", "windows" ] - revision = "f6cff0780e542efa0c8e864dc8fa522808f6a598" + revision = "dd2ff4accc098aceecb86b36eaa7829b2a17b1c9" [[projects]] name = "golang.org/x/text" diff --git a/vendor/github.com/GoogleCloudPlatform/container-diff/pkg/image/mutable_source.go b/vendor/github.com/GoogleCloudPlatform/container-diff/pkg/image/mutable_source.go index fcd4521da..2c7e2795a 100644 --- a/vendor/github.com/GoogleCloudPlatform/container-diff/pkg/image/mutable_source.go +++ b/vendor/github.com/GoogleCloudPlatform/container-diff/pkg/image/mutable_source.go @@ -142,7 +142,7 @@ func (m *MutableSource) AppendLayer(content []byte, author string) error { // Also add it to the config. diffID := digest.FromBytes(content) m.cfg.RootFS.DiffIDs = append(m.cfg.RootFS.DiffIDs, diffID) - m.appendConfigHistory(author, false) + m.AppendConfigHistory(author, false) return nil } @@ -184,7 +184,7 @@ func (m *MutableSource) SetEnv(envMap map[string]string, author string) { envArray = append(envArray, entry) } m.cfg.Schema2V1Image.Config.Env = envArray - m.appendConfigHistory(author, true) + m.AppendConfigHistory(author, true) } func (m *MutableSource) Config() *manifest.Schema2Config { @@ -193,10 +193,10 @@ func (m *MutableSource) Config() *manifest.Schema2Config { func (m *MutableSource) SetConfig(config *manifest.Schema2Config, author string, emptyLayer bool) { m.cfg.Schema2V1Image.Config = config - m.appendConfigHistory(author, emptyLayer) + m.AppendConfigHistory(author, emptyLayer) } -func (m *MutableSource) appendConfigHistory(author string, emptyLayer bool) { +func (m *MutableSource) AppendConfigHistory(author string, emptyLayer bool) { history := manifest.Schema2History{ Created: time.Now(), Author: author, diff --git a/vendor/github.com/containers/storage/store.go b/vendor/github.com/containers/storage/store.go index 02dd7a1b3..a31a08b2a 100644 --- a/vendor/github.com/containers/storage/store.go +++ b/vendor/github.com/containers/storage/store.go @@ -2276,14 +2276,15 @@ func (s *store) Shutdown(force bool) ([]string, error) { return mounted, err } + s.graphLock.Lock() + defer s.graphLock.Unlock() + rlstore.Lock() defer rlstore.Unlock() if modified, err := rlstore.Modified(); modified || err != nil { rlstore.Load() } - s.graphLock.Lock() - defer s.graphLock.Unlock() layers, err := rlstore.Layers() if err != nil { return mounted, err diff --git a/vendor/golang.org/x/sys/unix/syscall_linux_arm64.go b/vendor/golang.org/x/sys/unix/syscall_linux_arm64.go index 9a8e6e411..c464783d8 100644 --- a/vendor/golang.org/x/sys/unix/syscall_linux_arm64.go +++ b/vendor/golang.org/x/sys/unix/syscall_linux_arm64.go @@ -23,8 +23,11 @@ package unix //sys Seek(fd int, offset int64, whence int) (off int64, err error) = SYS_LSEEK func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) { - ts := Timespec{Sec: timeout.Sec, Nsec: timeout.Usec * 1000} - return Pselect(nfd, r, w, e, &ts, nil) + var ts *Timespec + if timeout != nil { + ts = &Timespec{Sec: timeout.Sec, Nsec: timeout.Usec * 1000} + } + return Pselect(nfd, r, w, e, ts, nil) } //sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) diff --git a/vendor/golang.org/x/sys/unix/syscall_linux_mips64x.go b/vendor/golang.org/x/sys/unix/syscall_linux_mips64x.go index 46aa4ff9c..15a69cbdd 100644 --- a/vendor/golang.org/x/sys/unix/syscall_linux_mips64x.go +++ b/vendor/golang.org/x/sys/unix/syscall_linux_mips64x.go @@ -26,8 +26,11 @@ package unix //sys Seek(fd int, offset int64, whence int) (off int64, err error) = SYS_LSEEK func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) { - ts := Timespec{Sec: timeout.Sec, Nsec: timeout.Usec * 1000} - return Pselect(nfd, r, w, e, &ts, nil) + var ts *Timespec + if timeout != nil { + ts = &Timespec{Sec: timeout.Sec, Nsec: timeout.Usec * 1000} + } + return Pselect(nfd, r, w, e, ts, nil) } //sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error)