isEligibleForBinaryCache returns true if we have additional metadata about the package to query it from the binary cache.
()
| 210 | // isEligibleForBinaryCache returns true if we have additional metadata about |
| 211 | // the package to query it from the binary cache. |
| 212 | func (p *Package) isEligibleForBinaryCache() (bool, error) { |
| 213 | defer debug.FunctionTimer().End() |
| 214 | // Patched packages are not in the binary cache. |
| 215 | if p.Patch { |
| 216 | return false, nil |
| 217 | } |
| 218 | sysInfo, err := p.sysInfoIfExists() |
| 219 | if err != nil { |
| 220 | return false, err |
| 221 | } |
| 222 | return sysInfo != nil, nil |
| 223 | } |
| 224 | |
| 225 | // sysInfoIfExists returns the system info for the user's system. If the sysInfo |
| 226 | // is missing, then nil is returned |
no test coverage detected