MCPcopy Create free account
hub / github.com/HashLoad/boss / SetInstalled

Method SetInstalled

models/lock.go:210–216  ·  view source on GitHub ↗
(dep Dependency, locked LockedDependency)

Source from the content-addressed store, hash-verified

208}
209
210func (p PackageLock) SetInstalled(dep Dependency, locked LockedDependency) {
211 dependencyDir := filepath.Join(env.GetCurrentDir(), consts.FolderDependencies, dep.GetName())
212 hash := utils.HashDir(dependencyDir)
213 locked.Hash = hash
214
215 p.Installed[strings.ToLower(dep.Repository)] = locked
216}
217
218func (p PackageLock) CleanRemoved(deps []Dependency) {
219 var repositories []string

Callers 2

buildOrderedPackagesFunction · 0.80
QueueMethod · 0.80

Calls 3

GetCurrentDirFunction · 0.92
HashDirFunction · 0.92
GetNameMethod · 0.80

Tested by

no test coverage detected