Backport of fix: avoid sending HEAD request on provider download into v1.12 (#37073)

* backport of commit b7cdffa5fb

* backport of commit 1c26d96d07

---------

Co-authored-by: Or Shachar <orchoock@gmail.com>
Co-authored-by: Liam Cervante <liam.cervante@hashicorp.com>
pull/37074/head
github-actions[bot] 1 year ago committed by GitHub
parent 3ba1d73708
commit e8bdb707de
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -0,0 +1,5 @@
kind: BUG FIXES
body: Fix regression during provider installation by reverting back to not sending HEAD requests.
time: 2025-05-14T18:43:57.332193-04:00
custom:
Issue: "36998"

@ -34,6 +34,7 @@ func installFromHTTPURL(ctx context.Context, meta getproviders.PackageMeta, targ
Client: httpclient.New(),
Netrc: true,
XTerraformGetDisabled: true,
DoNotCheckHeadFirst: true,
}
urlObj, err := url.Parse(urlStr)

Loading…
Cancel
Save