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>
This commit is contained in:
Or Shachar 2025-05-16 06:56:19 -04:00 committed by GitHub
parent 4e00e1ecdb
commit 88da854f34
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 0 deletions

View file

@ -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"

View file

@ -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)