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

Method GetResolvedStorePaths

internal/devpkg/package.go:743–759  ·  view source on GitHub ↗

GetResolvedStorePaths returns the store paths that are resolved (in lockfile)

()

Source from the content-addressed store, hash-verified

741
742// GetResolvedStorePaths returns the store paths that are resolved (in lockfile)
743func (p *Package) GetResolvedStorePaths() ([]string, error) {
744 names, err := p.GetOutputNames()
745 if err != nil {
746 return nil, err
747 }
748 storePaths := []string{}
749 for _, name := range names {
750 outputs, err := p.outputsForOutputName(name)
751 if err != nil {
752 return nil, err
753 }
754 for _, output := range outputs {
755 storePaths = append(storePaths, output.Path)
756 }
757 }
758 return storePaths, nil
759}
760
761const MissingStorePathsWarning = "Outputs for %s are not in lockfile. To fix this issue and improve performance, please run " +
762 "`devbox install --tidy-lockfile`\n"

Callers 2

GetStorePathsMethod · 0.95
FixMissingStorePathsMethod · 0.80

Calls 2

GetOutputNamesMethod · 0.95
outputsForOutputNameMethod · 0.95

Tested by

no test coverage detected