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

Method EnsureUninstallableIsInLockfile

internal/devpkg/package.go:646–654  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

644}
645
646func (p *Package) EnsureUninstallableIsInLockfile() error {
647 // TODO savil: Should !p.isInstallable() be the opposite i.e. p.IsInstallable()?
648 // TODO savil: Do we need the IsDevboxPackage check here?
649 if !p.IsInstallable() || !p.IsDevboxPackage {
650 return nil
651 }
652 _, err := p.lockfile.Resolve(p.LockfileKey())
653 return err
654}
655
656func (p *Package) IsRunX() bool {
657 return pkgtype.IsRunX(p.Raw)

Callers 1

updateLockfileMethod · 0.80

Calls 3

IsInstallableMethod · 0.95
LockfileKeyMethod · 0.95
ResolveMethod · 0.65

Tested by

no test coverage detected