Commit f5be296f authored by Matt Butcher's avatar Matt Butcher Committed by GitHub

Merge pull request #1454 from technosophos/fix/1428-dont-update-unchanged-lock

fix(helm): skip overwriting the lock if it hasn't changed
parents 7009c3c3 819ec442
...@@ -138,6 +138,12 @@ func (m *Manager) Update() error { ...@@ -138,6 +138,12 @@ func (m *Manager) Update() error {
return err return err
} }
// If the lock file hasn't changed, don't write a new one.
oldLock, err := chartutil.LoadRequirementsLock(c)
if err == nil && oldLock.Digest == lock.Digest {
return nil
}
// Finally, we need to write the lockfile. // Finally, we need to write the lockfile.
return writeLock(m.ChartPath, lock) return writeLock(m.ChartPath, lock)
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment