MCPcopy Index your code
hub / github.com/jetify-com/devbox / UpdateLockfileVersion

Method UpdateLockfileVersion

internal/plugin/plugin.go:111–121  ·  view source on GitHub ↗
(cfg *Config)

Source from the content-addressed store, hash-verified

109}
110
111func (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
123func (m *Manager) createFile(
124 pkg Includable,

Callers 1

updateLockfileMethod · 0.80

Calls 2

LockfileKeyMethod · 0.65
SaveMethod · 0.45

Tested by

no test coverage detected