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

Function useResolvedPackageInLockfile

internal/devbox/update.go:299–307  ·  view source on GitHub ↗
(
	lockfile *lock.File,
	pkg *devpkg.Package,
	resolved *lock.Package,
	existing *lock.Package,
)

Source from the content-addressed store, hash-verified

297}
298
299func useResolvedPackageInLockfile(
300 lockfile *lock.File,
301 pkg *devpkg.Package,
302 resolved *lock.Package,
303 existing *lock.Package,
304) {
305 lockfile.Packages[pkg.Raw] = resolved
306 lockfile.Packages[pkg.Raw].AllowInsecure = existing.AllowInsecure
307}

Calls

no outgoing calls

Tested by

no test coverage detected