mirror of
https://github.com/GoogleContainerTools/kaniko
synced 2026-10-04 15:26:19 +02:00
Updated vendor for new version of container-diff
This commit is contained in:
+4
-4
@@ -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,
|
||||
|
||||
+3
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user