GetResolvedStorePaths returns the store paths that are resolved (in lockfile)
()
| 741 | |
| 742 | // GetResolvedStorePaths returns the store paths that are resolved (in lockfile) |
| 743 | func (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 | |
| 761 | const MissingStorePathsWarning = "Outputs for %s are not in lockfile. To fix this issue and improve performance, please run " + |
| 762 | "`devbox install --tidy-lockfile`\n" |
no test coverage detected