InstallHosts returns the hostnames the auto-installer will reach for when installing this package. Always includes the registry-side lookup hosts because the in-sandbox installer re-runs the same LookupByName/LookupByCommand path the host uses here.
()
| 68 | // lookup hosts because the in-sandbox installer re-runs the same |
| 69 | // LookupByName/LookupByCommand path the host uses here. |
| 70 | func (p *Package) InstallHosts() []string { |
| 71 | if p.IsGoPackage() { |
| 72 | return mergeHosts(lookupHosts, goInstallHosts) |
| 73 | } |
| 74 | return mergeHosts(lookupHosts, githubReleaseHosts) |
| 75 | } |
| 76 | |
| 77 | // ResolveHosts returns the set of hostnames the auto-installer needs |
| 78 | // to reach inside a sandbox in order to install command at version. |