(cfg *Config)
| 109 | } |
| 110 | |
| 111 | func (m *Manager) UpdateLockfileVersion(cfg *Config) error { |
| 112 | pkg := cfg.Source |
| 113 | locked := m.lockfile.Packages[pkg.LockfileKey()] |
| 114 | // plugins that are not triggered by packages don't have a lockfile entry |
| 115 | // this may change if we decide to store all plugins in the lockfile |
| 116 | if locked == nil { |
| 117 | return nil |
| 118 | } |
| 119 | locked.PluginVersion = cfg.Version |
| 120 | return m.lockfile.Save() |
| 121 | } |
| 122 | |
| 123 | func (m *Manager) createFile( |
| 124 | pkg Includable, |
no test coverage detected