Title
#contributors
n

Neverov Dmitriy

05/24/2021, 6:55 PM
in my humble opinion, everything is ok with pointers in the code. can anyone have encountered such kind of errors?
go test ./internal/providers/terraform/aws/waf_web_acl_test.go -v -update
=== RUN   TestWafWebAclGoldenFile
=== PAUSE TestWafWebAclGoldenFile
=== CONT  TestWafWebAclGoldenFile
tftest.go:274: Couldn't copy terraform init cache from /home/dima/infracostFork/infracost/.test_cache/terraform_init
✔ Running terraform init
✔ Running terraform plan
✔ Running terraform show
--- FAIL: TestWafWebAclGoldenFile (45.08s)
panic: runtime error: invalid memory address or nil pointer dereference [recovered]
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x10 pc=0x875901]
s

Sina Bakhtiari

05/24/2021, 8:28 PM
What branch are you on? I would be happy to help to find the problem.
Ali (Infracost)

Ali (Infracost)

05/24/2021, 8:30 PM
INFRACOST_LOG_LEVEL=info make -s run ARGS="breakdown --path internal/providers/terraform/aws/testdata/waf_web_acl"
might offer some clues too
Ernest Kifel

Ernest Kifel

05/24/2021, 8:59 PM
We already found what problem is was, thank you guys 😃