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

Method urlForInstall

internal/devpkg/package.go:322–327  ·  view source on GitHub ↗

urlForInstall is used during `nix profile install`. The key difference with URLForFlakeInput is that it has a suffix of `#attributePath`

()

Source from the content-addressed store, hash-verified

320// The key difference with URLForFlakeInput is that it has a suffix of
321// `#attributePath`
322func (p *Package) urlForInstall() (string, error) {
323 if err := p.resolve(); err != nil {
324 return "", err
325 }
326 return p.installable.String(), nil
327}
328
329func (p *Package) NormalizedDevboxPackageReference() (string, error) {
330 installable, err := p.FlakeInstallable()

Callers 4

InstallablesMethod · 0.95
InstallableForOutputMethod · 0.95
StoreNameMethod · 0.95

Calls 1

StringMethod · 0.45

Tested by

no test coverage detected