(ctx context.Context, hash, storeAddr string)
| 17 | ) |
| 18 | |
| 19 | func StorePathFromHashPart(ctx context.Context, hash, storeAddr string) (string, error) { |
| 20 | cmd := Command("store", "path-from-hash-part", "--store", storeAddr, hash) |
| 21 | resultBytes, err := cmd.Output(ctx) |
| 22 | if err != nil { |
| 23 | return "", err |
| 24 | } |
| 25 | return strings.TrimSpace(string(resultBytes)), nil |
| 26 | } |
| 27 | |
| 28 | func StorePathsFromInstallable(ctx context.Context, installable string, allowInsecure bool) ([]string, error) { |
| 29 | defer debug.FunctionTimer().End() |
no test coverage detected