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

fix(helm): skip overwriting the lock if it hasn't changed
pull/1457/head
Matt Butcher 8 years ago committed by GitHub
commit f5be296f0c

@ -138,6 +138,12 @@ func (m *Manager) Update() error {
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.
return writeLock(m.ChartPath, lock)
}

Loading…
Cancel
Save