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

Method version

internal/devpkg/package.go:559–565  ·  view source on GitHub ↗

version returns the version of the package it only applies to devbox packages

()

Source from the content-addressed store, hash-verified

557// version returns the version of the package
558// it only applies to devbox packages
559func (p *Package) version() string {
560 if !p.IsDevboxPackage {
561 return ""
562 }
563 _, version, _ := strings.Cut(p.Raw, "@")
564 return version
565}
566
567func (p *Package) isVersioned() bool {
568 return p.IsDevboxPackage && strings.Contains(p.Raw, "@")

Callers 1

ValidateExistsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected