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

Method NormalizedDevboxPackageReference

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

Source from the content-addressed store, hash-verified

327}
328
329func (p *Package) NormalizedDevboxPackageReference() (string, error) {
330 installable, err := p.FlakeInstallable()
331 if err != nil {
332 return "", err
333 }
334 if installable.AttrPath == "" {
335 return "", nil
336 }
337 installable.AttrPath = fmt.Sprintf("legacyPackages.%s.%s", nix.System(), installable.AttrPath)
338 installable.Outputs = ""
339 return installable.String(), nil
340}
341
342// PackageAttributePath returns the short attribute path for a package which
343// does not include packages/legacyPackages or the system name.

Callers 2

ProfileListNameOrIndexFunction · 0.80

Calls 3

FlakeInstallableMethod · 0.95
SystemFunction · 0.92
StringMethod · 0.45

Tested by

no test coverage detected