crucible build parity (#14)
forces build parity with crucible = local builds and CI/CD builds use different tools. Reviewed-on: #14 Co-authored-by: vickydotbat <vickydotbat@tutamail.com> Co-committed-by: vickydotbat <vickydotbat@tutamail.com>
This commit was merged in pull request #14.
This commit is contained in:
@@ -274,6 +274,19 @@ func writePartsManifestCache(path string, manifest *partsManifest) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// httpGetStatus performs an anonymous GET and returns the status code plus the
|
||||
// body (capped). No auth header: cdn_channel inputs (channels.json, vfxs.yml,
|
||||
// haks.json) are public CDN text — R1.
|
||||
func httpGetStatus(target string) (int, []byte, error) {
|
||||
resp, err := partsManifestHTTPClient.Get(target)
|
||||
if err != nil {
|
||||
return 0, nil, err
|
||||
}
|
||||
defer resp.Body.Close()
|
||||
body, _ := io.ReadAll(io.LimitReader(resp.Body, 8<<20))
|
||||
return resp.StatusCode, body, nil
|
||||
}
|
||||
|
||||
func inventoryFromPartsManifest(manifest *partsManifest) map[string]map[int]struct{} {
|
||||
result := make(map[string]map[int]struct{}, len(supportedPartCategories))
|
||||
for _, category := range supportedPartCategories {
|
||||
|
||||
Reference in New Issue
Block a user