tau icon indicating copy to clipboard operation
tau copied to clipboard

Panic for tau init with terraform dependecy after version 0.12.10

Open yngveh opened this issue 4 years ago • 0 comments

From version 0.12.11 tau init panics for hashicorp registry modules with:

$tau init -f mymodule.hcl

- Loading module from terraform registry avinor/storage-account/azurerm, version 2.2.0
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0xdf2a67]

goroutine 19 [running]:
github.com/hashicorp/terraform-svchost/disco.(*userAgentRoundTripper).RoundTrip(0xc0007be040, 0xc0000b7f00, 0xc0007be040, 0xbfee610ba99090b9, 0x388c626b8)
       /home/xxxxx/go/pkg/mod/github.com/hashicorp/[email protected]/disco/http_transport.go:29 +0x67
net/http.send(0xc0000b6100, 0x12242a0, 0xc0007be040, 0xbfee610ba99090b9, 0x388c626b8, 0x17f2ae0, 0xc0004d4030, 0xbfee610ba99090b9, 0x1, 0x0)
       /usr/local/go/src/net/http/client.go:252 +0x453
net/http.(*Client).send(0xc0007b00f0, 0xc0000b6100, 0xbfee610ba99090b9, 0x388c626b8, 0x17f2ae0, 0xc0004d4030, 0x0, 0x1, 0x5)
       /usr/local/go/src/net/http/client.go:176 +0xff
net/http.(*Client).do(0xc0007b00f0, 0xc0000b6100, 0x0, 0x0, 0x0)
       /usr/local/go/src/net/http/client.go:718 +0x45f
net/http.(*Client).Do(...)
       /usr/local/go/src/net/http/client.go:586

yngveh avatar Dec 15 '20 19:12 yngveh