fix: avoid sending HEAD request on provider download (#36998)

* fix: avoid sending HEAD request on provider download

Signed-off-by: Or Shachar <orchoock@gmail.com>

* Apply suggestions from code review

---------

Signed-off-by: Or Shachar <orchoock@gmail.com>
Co-authored-by: Liam Cervante <liam.cervante@hashicorp.com>
pull/36922/head^2
Or Shachar 11 months ago committed by GitHub
parent 4e00e1ecdb
commit 88da854f34
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