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