(output string)
| 189 | } |
| 190 | |
| 191 | func (p *Package) outputsForOutputName(output string) ([]lock.Output, error) { |
| 192 | sysInfo, err := p.sysInfoIfExists() |
| 193 | if err != nil || sysInfo == nil { |
| 194 | return nil, err |
| 195 | } |
| 196 | |
| 197 | var outputs []lock.Output |
| 198 | if output == useDefaultOutputs { |
| 199 | outputs = sysInfo.DefaultOutputs() |
| 200 | } else { |
| 201 | out, err := sysInfo.Output(output) |
| 202 | if err != nil { |
| 203 | return nil, err |
| 204 | } |
| 205 | outputs = []lock.Output{out} |
| 206 | } |
| 207 | return outputs, nil |
| 208 | } |
| 209 | |
| 210 | // isEligibleForBinaryCache returns true if we have additional metadata about |
| 211 | // the package to query it from the binary cache. |
no test coverage detected