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

Method CanonicalName

internal/devpkg/package.go:500–506  ·  view source on GitHub ↗

CanonicalName returns the name of the package without the version it only applies to devbox packages

()

Source from the content-addressed store, hash-verified

498// CanonicalName returns the name of the package without the version
499// it only applies to devbox packages
500func (p *Package) CanonicalName() string {
501 if !p.IsDevboxPackage {
502 return ""
503 }
504 name, _, _ := strings.Cut(p.Raw, "@")
505 return name
506}
507
508func (p *Package) Versioned() string {
509 if p.IsDevboxPackage && !p.isVersioned() {

Callers 2

newPackageFunction · 0.95
DocsURLMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected