Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
comment update
  • Loading branch information
pawbana committed Nov 17, 2025
commit 08bbdf278d594838cc308bfc1dc01d39681701e9
3 changes: 2 additions & 1 deletion provisioner/terraform/install_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,8 @@ func (p *terraformProxy) handleGet(w http.ResponseWriter, r *http.Request) {
body, err := io.ReadAll(resp.Body)
require.NoError(p.t, err)

// update index.json so it points to proxy
// update index.json so urls in it point to proxy by making them relative
// "https://releases.hashicorp.com/terraform/1.13.4/terraform_1.13.4_windows_amd64.zip" -> "/terraform/1.13.4/terraform_1.13.4_windows_amd64.zip"
if strings.HasSuffix(r.URL.Path, "index.json") {
body = []byte(strings.ReplaceAll(string(body), terraformURL, ""))
}
Expand Down
Loading