Skip to content

Instantly share code, notes, and snippets.

@radeksimko
Created May 18, 2022 08:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save radeksimko/82dab1f27efc0ff493891b7dc3e82253 to your computer and use it in GitHub Desktop.
Save radeksimko/82dab1f27efc0ff493891b7dc3e82253 to your computer and use it in GitHub Desktop.
go test ./... -count=5 -race
? github.com/hashicorp/terraform-exec/internal/version [no test files]
ok github.com/hashicorp/terraform-exec/tfexec 15.829s
==================
WARNING: DATA RACE
Read at 0x00c0002fa628 by goroutine 31:
strings.(*Builder).String()
/opt/homebrew/Cellar/go/1.18.1/libexec/src/strings/builder.go:47 +0x4f0
github.com/hashicorp/terraform-exec/tfexec.(*Terraform).runTerraformCmd()
/Users/radeksimko/gopath/src/github.com/hashicorp/terraform-exec/tfexec/cmd_default.go:63 +0x500
github.com/hashicorp/terraform-exec/tfexec.(*Terraform).runTerraformCmdJSON()
/Users/radeksimko/gopath/src/github.com/hashicorp/terraform-exec/tfexec/cmd.go:190 +0x134
github.com/hashicorp/terraform-exec/tfexec.(*Terraform).Show()
/Users/radeksimko/gopath/src/github.com/hashicorp/terraform-exec/tfexec/show.go:53 +0x2f8
github.com/hashicorp/terraform-exec/tfexec/internal/e2etest.TestShow_noInitLocalBackendNonDefaultState.func1()
/Users/radeksimko/gopath/src/github.com/hashicorp/terraform-exec/tfexec/internal/e2etest/show_test.go:209 +0xf4
github.com/hashicorp/terraform-exec/tfexec/internal/e2etest.runTestVersions.func1()
/Users/radeksimko/gopath/src/github.com/hashicorp/terraform-exec/tfexec/internal/e2etest/util_test.go:112 +0x7b4
testing.tRunner()
/opt/homebrew/Cellar/go/1.18.1/libexec/src/testing/testing.go:1439 +0x18c
testing.(*T).Run.func1()
/opt/homebrew/Cellar/go/1.18.1/libexec/src/testing/testing.go:1486 +0x44
Previous write at 0x00c0002fa628 by goroutine 77:
strings.(*Builder).Write()
/opt/homebrew/Cellar/go/1.18.1/libexec/src/strings/builder.go:89 +0x14c
io.(*multiWriter).Write()
/opt/homebrew/Cellar/go/1.18.1/libexec/src/io/multi.go:60 +0xb8
github.com/hashicorp/terraform-exec/tfexec.writeOutput()
/Users/radeksimko/gopath/src/github.com/hashicorp/terraform-exec/tfexec/cmd.go:241 +0x168
github.com/hashicorp/terraform-exec/tfexec.(*Terraform).runTerraformCmd.func2()
/Users/radeksimko/gopath/src/github.com/hashicorp/terraform-exec/tfexec/cmd_default.go:55 +0x5c
Goroutine 31 (running) created at:
testing.(*T).Run()
/opt/homebrew/Cellar/go/1.18.1/libexec/src/testing/testing.go:1486 +0x560
github.com/hashicorp/terraform-exec/tfexec/internal/e2etest.runTestVersions()
/Users/radeksimko/gopath/src/github.com/hashicorp/terraform-exec/tfexec/internal/e2etest/util_test.go:53 +0x288
github.com/hashicorp/terraform-exec/tfexec/internal/e2etest.runTest()
/Users/radeksimko/gopath/src/github.com/hashicorp/terraform-exec/tfexec/internal/e2etest/util_test.go:45 +0x12c
github.com/hashicorp/terraform-exec/tfexec/internal/e2etest.TestShow_noInitLocalBackendNonDefaultState()
/Users/radeksimko/gopath/src/github.com/hashicorp/terraform-exec/tfexec/internal/e2etest/show_test.go:203 +0x40
testing.tRunner()
/opt/homebrew/Cellar/go/1.18.1/libexec/src/testing/testing.go:1439 +0x18c
testing.(*T).Run.func1()
/opt/homebrew/Cellar/go/1.18.1/libexec/src/testing/testing.go:1486 +0x44
Goroutine 77 (finished) created at:
github.com/hashicorp/terraform-exec/tfexec.(*Terraform).runTerraformCmd()
/Users/radeksimko/gopath/src/github.com/hashicorp/terraform-exec/tfexec/cmd_default.go:54 +0x464
github.com/hashicorp/terraform-exec/tfexec.(*Terraform).runTerraformCmdJSON()
/Users/radeksimko/gopath/src/github.com/hashicorp/terraform-exec/tfexec/cmd.go:190 +0x134
github.com/hashicorp/terraform-exec/tfexec.(*Terraform).Show()
/Users/radeksimko/gopath/src/github.com/hashicorp/terraform-exec/tfexec/show.go:53 +0x2f8
github.com/hashicorp/terraform-exec/tfexec/internal/e2etest.TestShow_noInitLocalBackendNonDefaultState.func1()
/Users/radeksimko/gopath/src/github.com/hashicorp/terraform-exec/tfexec/internal/e2etest/show_test.go:209 +0xf4
github.com/hashicorp/terraform-exec/tfexec/internal/e2etest.runTestVersions.func1()
/Users/radeksimko/gopath/src/github.com/hashicorp/terraform-exec/tfexec/internal/e2etest/util_test.go:112 +0x7b4
testing.tRunner()
/opt/homebrew/Cellar/go/1.18.1/libexec/src/testing/testing.go:1439 +0x18c
testing.(*T).Run.func1()
/opt/homebrew/Cellar/go/1.18.1/libexec/src/testing/testing.go:1486 +0x44
==================
==================
WARNING: DATA RACE
Read at 0x00c001191cc8 by goroutine 31:
strings.(*Builder).String()
/opt/homebrew/Cellar/go/1.18.1/libexec/src/strings/builder.go:47 +0x7d0
github.com/hashicorp/terraform-exec/tfexec/internal/e2etest.runTestVersions.func1()
/Users/radeksimko/gopath/src/github.com/hashicorp/terraform-exec/tfexec/internal/e2etest/util_test.go:114 +0x7e0
testing.tRunner()
/opt/homebrew/Cellar/go/1.18.1/libexec/src/testing/testing.go:1439 +0x18c
testing.(*T).Run.func1()
/opt/homebrew/Cellar/go/1.18.1/libexec/src/testing/testing.go:1486 +0x44
Previous write at 0x00c001191cc8 by goroutine 77:
strings.(*Builder).Write()
/opt/homebrew/Cellar/go/1.18.1/libexec/src/strings/builder.go:89 +0x14c
io.(*multiWriter).Write()
/opt/homebrew/Cellar/go/1.18.1/libexec/src/io/multi.go:60 +0xb8
github.com/hashicorp/terraform-exec/tfexec.writeOutput()
/Users/radeksimko/gopath/src/github.com/hashicorp/terraform-exec/tfexec/cmd.go:241 +0x168
github.com/hashicorp/terraform-exec/tfexec.(*Terraform).runTerraformCmd.func2()
/Users/radeksimko/gopath/src/github.com/hashicorp/terraform-exec/tfexec/cmd_default.go:55 +0x5c
Goroutine 31 (running) created at:
testing.(*T).Run()
/opt/homebrew/Cellar/go/1.18.1/libexec/src/testing/testing.go:1486 +0x560
github.com/hashicorp/terraform-exec/tfexec/internal/e2etest.runTestVersions()
/Users/radeksimko/gopath/src/github.com/hashicorp/terraform-exec/tfexec/internal/e2etest/util_test.go:53 +0x288
github.com/hashicorp/terraform-exec/tfexec/internal/e2etest.runTest()
/Users/radeksimko/gopath/src/github.com/hashicorp/terraform-exec/tfexec/internal/e2etest/util_test.go:45 +0x12c
github.com/hashicorp/terraform-exec/tfexec/internal/e2etest.TestShow_noInitLocalBackendNonDefaultState()
/Users/radeksimko/gopath/src/github.com/hashicorp/terraform-exec/tfexec/internal/e2etest/show_test.go:203 +0x40
testing.tRunner()
/opt/homebrew/Cellar/go/1.18.1/libexec/src/testing/testing.go:1439 +0x18c
testing.(*T).Run.func1()
/opt/homebrew/Cellar/go/1.18.1/libexec/src/testing/testing.go:1486 +0x44
Goroutine 77 (finished) created at:
github.com/hashicorp/terraform-exec/tfexec.(*Terraform).runTerraformCmd()
/Users/radeksimko/gopath/src/github.com/hashicorp/terraform-exec/tfexec/cmd_default.go:54 +0x464
github.com/hashicorp/terraform-exec/tfexec.(*Terraform).runTerraformCmdJSON()
/Users/radeksimko/gopath/src/github.com/hashicorp/terraform-exec/tfexec/cmd.go:190 +0x134
github.com/hashicorp/terraform-exec/tfexec.(*Terraform).Show()
/Users/radeksimko/gopath/src/github.com/hashicorp/terraform-exec/tfexec/show.go:53 +0x2f8
github.com/hashicorp/terraform-exec/tfexec/internal/e2etest.TestShow_noInitLocalBackendNonDefaultState.func1()
/Users/radeksimko/gopath/src/github.com/hashicorp/terraform-exec/tfexec/internal/e2etest/show_test.go:209 +0xf4
github.com/hashicorp/terraform-exec/tfexec/internal/e2etest.runTestVersions.func1()
/Users/radeksimko/gopath/src/github.com/hashicorp/terraform-exec/tfexec/internal/e2etest/util_test.go:112 +0x7b4
testing.tRunner()
/opt/homebrew/Cellar/go/1.18.1/libexec/src/testing/testing.go:1439 +0x18c
testing.(*T).Run.func1()
/opt/homebrew/Cellar/go/1.18.1/libexec/src/testing/testing.go:1486 +0x44
==================
==================
WARNING: DATA RACE
Read at 0x00c0001dce78 by goroutine 31:
runtime.slicecopy()
/opt/homebrew/Cellar/go/1.18.1/libexec/src/runtime/slice.go:295 +0x0
fmt.(*buffer).writeString()
/opt/homebrew/Cellar/go/1.18.1/libexec/src/fmt/print.go:82 +0x10c
fmt.(*fmt).padString()
/opt/homebrew/Cellar/go/1.18.1/libexec/src/fmt/format.go:110 +0x74
fmt.(*fmt).fmtS()
/opt/homebrew/Cellar/go/1.18.1/libexec/src/fmt/format.go:359 +0x7c
fmt.(*pp).fmtString()
/opt/homebrew/Cellar/go/1.18.1/libexec/src/fmt/print.go:446 +0x150
fmt.(*pp).printArg()
/opt/homebrew/Cellar/go/1.18.1/libexec/src/fmt/print.go:694 +0x960
fmt.(*pp).doPrintf()
/opt/homebrew/Cellar/go/1.18.1/libexec/src/fmt/print.go:1026 +0x348
fmt.Sprintf()
/opt/homebrew/Cellar/go/1.18.1/libexec/src/fmt/print.go:219 +0x54
testing.(*common).Logf()
/opt/homebrew/Cellar/go/1.18.1/libexec/src/testing/testing.go:920 +0x70
github.com/hashicorp/terraform-exec/tfexec/internal/e2etest.runTestVersions.func1()
/Users/radeksimko/gopath/src/github.com/hashicorp/terraform-exec/tfexec/internal/e2etest/util_test.go:114 +0x814
testing.tRunner()
/opt/homebrew/Cellar/go/1.18.1/libexec/src/testing/testing.go:1439 +0x18c
testing.(*T).Run.func1()
/opt/homebrew/Cellar/go/1.18.1/libexec/src/testing/testing.go:1486 +0x44
Previous write at 0x00c0001dce79 by goroutine 77:
runtime.slicecopy()
/opt/homebrew/Cellar/go/1.18.1/libexec/src/runtime/slice.go:295 +0x0
strings.(*Builder).Write()
/opt/homebrew/Cellar/go/1.18.1/libexec/src/strings/builder.go:89 +0x144
io.(*multiWriter).Write()
/opt/homebrew/Cellar/go/1.18.1/libexec/src/io/multi.go:60 +0xb8
github.com/hashicorp/terraform-exec/tfexec.writeOutput()
/Users/radeksimko/gopath/src/github.com/hashicorp/terraform-exec/tfexec/cmd.go:241 +0x168
github.com/hashicorp/terraform-exec/tfexec.(*Terraform).runTerraformCmd.func2()
/Users/radeksimko/gopath/src/github.com/hashicorp/terraform-exec/tfexec/cmd_default.go:55 +0x5c
Goroutine 31 (running) created at:
testing.(*T).Run()
/opt/homebrew/Cellar/go/1.18.1/libexec/src/testing/testing.go:1486 +0x560
github.com/hashicorp/terraform-exec/tfexec/internal/e2etest.runTestVersions()
/Users/radeksimko/gopath/src/github.com/hashicorp/terraform-exec/tfexec/internal/e2etest/util_test.go:53 +0x288
github.com/hashicorp/terraform-exec/tfexec/internal/e2etest.runTest()
/Users/radeksimko/gopath/src/github.com/hashicorp/terraform-exec/tfexec/internal/e2etest/util_test.go:45 +0x12c
github.com/hashicorp/terraform-exec/tfexec/internal/e2etest.TestShow_noInitLocalBackendNonDefaultState()
/Users/radeksimko/gopath/src/github.com/hashicorp/terraform-exec/tfexec/internal/e2etest/show_test.go:203 +0x40
testing.tRunner()
/opt/homebrew/Cellar/go/1.18.1/libexec/src/testing/testing.go:1439 +0x18c
testing.(*T).Run.func1()
/opt/homebrew/Cellar/go/1.18.1/libexec/src/testing/testing.go:1486 +0x44
Goroutine 77 (finished) created at:
github.com/hashicorp/terraform-exec/tfexec.(*Terraform).runTerraformCmd()
/Users/radeksimko/gopath/src/github.com/hashicorp/terraform-exec/tfexec/cmd_default.go:54 +0x464
github.com/hashicorp/terraform-exec/tfexec.(*Terraform).runTerraformCmdJSON()
/Users/radeksimko/gopath/src/github.com/hashicorp/terraform-exec/tfexec/cmd.go:190 +0x134
github.com/hashicorp/terraform-exec/tfexec.(*Terraform).Show()
/Users/radeksimko/gopath/src/github.com/hashicorp/terraform-exec/tfexec/show.go:53 +0x2f8
github.com/hashicorp/terraform-exec/tfexec/internal/e2etest.TestShow_noInitLocalBackendNonDefaultState.func1()
/Users/radeksimko/gopath/src/github.com/hashicorp/terraform-exec/tfexec/internal/e2etest/show_test.go:209 +0xf4
github.com/hashicorp/terraform-exec/tfexec/internal/e2etest.runTestVersions.func1()
/Users/radeksimko/gopath/src/github.com/hashicorp/terraform-exec/tfexec/internal/e2etest/util_test.go:112 +0x7b4
testing.tRunner()
/opt/homebrew/Cellar/go/1.18.1/libexec/src/testing/testing.go:1439 +0x18c
testing.(*T).Run.func1()
/opt/homebrew/Cellar/go/1.18.1/libexec/src/testing/testing.go:1486 +0x44
==================
--- FAIL: TestShow_noInitLocalBackendNonDefaultState (0.70s)
--- FAIL: TestShow_noInitLocalBackendNonDefaultState/local_backend_non_default_state-1.1.9 (0.32s)
util_test.go:124: [INFO] running Terraform command: /var/folders/9w/pddq2x656j76vxvsbhcs4nwr0000gq/T/terraform_4195147034/terraform show -json -no-color
util_test.go:114: CLI Output:
Error: Backend initialization required, please run "terraform init"
Reason: Initial configuration of the requested backend "local"
The "backend" is the interface that Terraform uses to store state,
perform operations, etc. If this message is showing up, it means that the
Terraform configuration you're using is using a custom configuration for
the Terraform backend.
Changes to backend configurations require reinitialization. This allows
Terraform to set up the new configuration, copy existing state, etc. Please
run
"terraform init" with either the "-reconfigure" or "-migrate-state" flags to
use the current configuration.
If the change reason above is incorrect, please verify your configuration
hasn't changed and try again. At this point, no changes to your existing
configuration or state have been made.
testing.go:1312: race detected during execution of test
testing.go:1312: race detected during execution of test
==================
WARNING: DATA RACE
Read at 0x00c0001f2dc8 by goroutine 23:
strings.(*Builder).String()
/opt/homebrew/Cellar/go/1.18.1/libexec/src/strings/builder.go:47 +0x4f0
github.com/hashicorp/terraform-exec/tfexec.(*Terraform).runTerraformCmd()
/Users/radeksimko/gopath/src/github.com/hashicorp/terraform-exec/tfexec/cmd_default.go:63 +0x500
github.com/hashicorp/terraform-exec/tfexec.(*Terraform).runTerraformCmdJSON()
/Users/radeksimko/gopath/src/github.com/hashicorp/terraform-exec/tfexec/cmd.go:190 +0x134
github.com/hashicorp/terraform-exec/tfexec.(*Terraform).Show()
/Users/radeksimko/gopath/src/github.com/hashicorp/terraform-exec/tfexec/show.go:53 +0x2f8
github.com/hashicorp/terraform-exec/tfexec/internal/e2etest.TestShow_noInitEtcdBackend.func1()
/Users/radeksimko/gopath/src/github.com/hashicorp/terraform-exec/tfexec/internal/e2etest/show_test.go:223 +0xf4
github.com/hashicorp/terraform-exec/tfexec/internal/e2etest.runTestVersions.func1()
/Users/radeksimko/gopath/src/github.com/hashicorp/terraform-exec/tfexec/internal/e2etest/util_test.go:112 +0x7b4
testing.tRunner()
/opt/homebrew/Cellar/go/1.18.1/libexec/src/testing/testing.go:1439 +0x18c
testing.(*T).Run.func1()
/opt/homebrew/Cellar/go/1.18.1/libexec/src/testing/testing.go:1486 +0x44
Previous write at 0x00c0001f2dc8 by goroutine 8:
strings.(*Builder).Write()
/opt/homebrew/Cellar/go/1.18.1/libexec/src/strings/builder.go:89 +0x14c
io.(*multiWriter).Write()
/opt/homebrew/Cellar/go/1.18.1/libexec/src/io/multi.go:60 +0xb8
github.com/hashicorp/terraform-exec/tfexec.writeOutput()
/Users/radeksimko/gopath/src/github.com/hashicorp/terraform-exec/tfexec/cmd.go:241 +0x168
github.com/hashicorp/terraform-exec/tfexec.(*Terraform).runTerraformCmd.func2()
/Users/radeksimko/gopath/src/github.com/hashicorp/terraform-exec/tfexec/cmd_default.go:55 +0x5c
Goroutine 23 (running) created at:
testing.(*T).Run()
/opt/homebrew/Cellar/go/1.18.1/libexec/src/testing/testing.go:1486 +0x560
github.com/hashicorp/terraform-exec/tfexec/internal/e2etest.runTestVersions()
/Users/radeksimko/gopath/src/github.com/hashicorp/terraform-exec/tfexec/internal/e2etest/util_test.go:53 +0x288
github.com/hashicorp/terraform-exec/tfexec/internal/e2etest.runTest()
/Users/radeksimko/gopath/src/github.com/hashicorp/terraform-exec/tfexec/internal/e2etest/util_test.go:45 +0x12c
github.com/hashicorp/terraform-exec/tfexec/internal/e2etest.TestShow_noInitEtcdBackend()
/Users/radeksimko/gopath/src/github.com/hashicorp/terraform-exec/tfexec/internal/e2etest/show_test.go:217 +0x40
testing.tRunner()
/opt/homebrew/Cellar/go/1.18.1/libexec/src/testing/testing.go:1439 +0x18c
testing.(*T).Run.func1()
/opt/homebrew/Cellar/go/1.18.1/libexec/src/testing/testing.go:1486 +0x44
Goroutine 8 (finished) created at:
github.com/hashicorp/terraform-exec/tfexec.(*Terraform).runTerraformCmd()
/Users/radeksimko/gopath/src/github.com/hashicorp/terraform-exec/tfexec/cmd_default.go:54 +0x464
github.com/hashicorp/terraform-exec/tfexec.(*Terraform).runTerraformCmdJSON()
/Users/radeksimko/gopath/src/github.com/hashicorp/terraform-exec/tfexec/cmd.go:190 +0x134
github.com/hashicorp/terraform-exec/tfexec.(*Terraform).Show()
/Users/radeksimko/gopath/src/github.com/hashicorp/terraform-exec/tfexec/show.go:53 +0x2f8
github.com/hashicorp/terraform-exec/tfexec/internal/e2etest.TestShow_noInitEtcdBackend.func1()
/Users/radeksimko/gopath/src/github.com/hashicorp/terraform-exec/tfexec/internal/e2etest/show_test.go:223 +0xf4
github.com/hashicorp/terraform-exec/tfexec/internal/e2etest.runTestVersions.func1()
/Users/radeksimko/gopath/src/github.com/hashicorp/terraform-exec/tfexec/internal/e2etest/util_test.go:112 +0x7b4
testing.tRunner()
/opt/homebrew/Cellar/go/1.18.1/libexec/src/testing/testing.go:1439 +0x18c
testing.(*T).Run.func1()
/opt/homebrew/Cellar/go/1.18.1/libexec/src/testing/testing.go:1486 +0x44
==================
--- FAIL: TestShow_noInitEtcdBackend (0.97s)
--- FAIL: TestShow_noInitEtcdBackend/etcd_backend-1.1.9 (0.60s)
util_test.go:124: [INFO] running Terraform command: /var/folders/9w/pddq2x656j76vxvsbhcs4nwr0000gq/T/terraform_4195147034/terraform show -json -no-color
util_test.go:114: CLI Output:
Error: Backend initialization required, please run "terraform init"
Reason: Initial configuration of the requested backend "etcd"
The "backend" is the interface that Terraform uses to store state,
perform operations, etc. If this message is showing up, it means that the
Terraform configuration you're using is using a custom configuration for
the Terraform backend.
Changes to backend configurations require reinitialization. This allows
Terraform to set up the new configuration, copy existing state, etc. Please
run
"terraform init" with either the "-reconfigure" or "-migrate-state" flags to
use the current configuration.
If the change reason above is incorrect, please verify your configuration
hasn't changed and try again. At this point, no changes to your existing
configuration or state have been made.
testing.go:1312: race detected during execution of test
testing.go:1312: race detected during execution of test
--- FAIL: TestStateRm (3.30s)
--- FAIL: TestStateRm/basic_with_state-1.1.9 (1.71s)
util_test.go:124: [INFO] running Terraform command: /var/folders/9w/pddq2x656j76vxvsbhcs4nwr0000gq/T/terraform_4195147034/terraform init -no-color -force-copy -input=false -backend=true -get=true -upgrade=false
util_test.go:124: [INFO] running Terraform command: /var/folders/9w/pddq2x656j76vxvsbhcs4nwr0000gq/T/terraform_4195147034/terraform state rm -no-color -lock-timeout=0s -lock=true null_resource.foo
util_test.go:124: [INFO] running Terraform command: /var/folders/9w/pddq2x656j76vxvsbhcs4nwr0000gq/T/terraform_4195147034/terraform show -json -no-color
state_rm_test.go:46: read |0: file already closed
==================
WARNING: DATA RACE
Read at 0x00c0006271a8 by goroutine 74:
strings.(*Builder).String()
/opt/homebrew/Cellar/go/1.18.1/libexec/src/strings/builder.go:47 +0x4f0
github.com/hashicorp/terraform-exec/tfexec.(*Terraform).runTerraformCmd()
/Users/radeksimko/gopath/src/github.com/hashicorp/terraform-exec/tfexec/cmd_default.go:63 +0x500
github.com/hashicorp/terraform-exec/tfexec.(*Terraform).Plan()
/Users/radeksimko/gopath/src/github.com/hashicorp/terraform-exec/tfexec/plan.go:104 +0x70
github.com/hashicorp/terraform-exec/tfexec/internal/e2etest.TestMissingVar.func1()
/Users/radeksimko/gopath/src/github.com/hashicorp/terraform-exec/tfexec/internal/e2etest/errors_test.go:72 +0x440
github.com/hashicorp/terraform-exec/tfexec/internal/e2etest.runTestVersions.func1()
/Users/radeksimko/gopath/src/github.com/hashicorp/terraform-exec/tfexec/internal/e2etest/util_test.go:112 +0x7b4
testing.tRunner()
/opt/homebrew/Cellar/go/1.18.1/libexec/src/testing/testing.go:1439 +0x18c
testing.(*T).Run.func1()
/opt/homebrew/Cellar/go/1.18.1/libexec/src/testing/testing.go:1486 +0x44
Previous write at 0x00c0006271a8 by goroutine 90:
strings.(*Builder).Write()
/opt/homebrew/Cellar/go/1.18.1/libexec/src/strings/builder.go:89 +0x14c
io.(*multiWriter).Write()
/opt/homebrew/Cellar/go/1.18.1/libexec/src/io/multi.go:60 +0xb8
github.com/hashicorp/terraform-exec/tfexec.writeOutput()
/Users/radeksimko/gopath/src/github.com/hashicorp/terraform-exec/tfexec/cmd.go:241 +0x168
github.com/hashicorp/terraform-exec/tfexec.(*Terraform).runTerraformCmd.func2()
/Users/radeksimko/gopath/src/github.com/hashicorp/terraform-exec/tfexec/cmd_default.go:55 +0x5c
Goroutine 74 (running) created at:
testing.(*T).Run()
/opt/homebrew/Cellar/go/1.18.1/libexec/src/testing/testing.go:1486 +0x560
github.com/hashicorp/terraform-exec/tfexec/internal/e2etest.runTestVersions()
/Users/radeksimko/gopath/src/github.com/hashicorp/terraform-exec/tfexec/internal/e2etest/util_test.go:53 +0x288
github.com/hashicorp/terraform-exec/tfexec/internal/e2etest.runTest()
/Users/radeksimko/gopath/src/github.com/hashicorp/terraform-exec/tfexec/internal/e2etest/util_test.go:45 +0x12c
github.com/hashicorp/terraform-exec/tfexec/internal/e2etest.TestMissingVar()
/Users/radeksimko/gopath/src/github.com/hashicorp/terraform-exec/tfexec/internal/e2etest/errors_test.go:47 +0x40
testing.tRunner()
/opt/homebrew/Cellar/go/1.18.1/libexec/src/testing/testing.go:1439 +0x18c
testing.(*T).Run.func1()
/opt/homebrew/Cellar/go/1.18.1/libexec/src/testing/testing.go:1486 +0x44
Goroutine 90 (finished) created at:
github.com/hashicorp/terraform-exec/tfexec.(*Terraform).runTerraformCmd()
/Users/radeksimko/gopath/src/github.com/hashicorp/terraform-exec/tfexec/cmd_default.go:54 +0x464
github.com/hashicorp/terraform-exec/tfexec.(*Terraform).Plan()
/Users/radeksimko/gopath/src/github.com/hashicorp/terraform-exec/tfexec/plan.go:104 +0x70
github.com/hashicorp/terraform-exec/tfexec/internal/e2etest.TestMissingVar.func1()
/Users/radeksimko/gopath/src/github.com/hashicorp/terraform-exec/tfexec/internal/e2etest/errors_test.go:72 +0x440
github.com/hashicorp/terraform-exec/tfexec/internal/e2etest.runTestVersions.func1()
/Users/radeksimko/gopath/src/github.com/hashicorp/terraform-exec/tfexec/internal/e2etest/util_test.go:112 +0x7b4
testing.tRunner()
/opt/homebrew/Cellar/go/1.18.1/libexec/src/testing/testing.go:1439 +0x18c
testing.(*T).Run.func1()
/opt/homebrew/Cellar/go/1.18.1/libexec/src/testing/testing.go:1486 +0x44
==================
==================
WARNING: DATA RACE
Read at 0x00c0004973c8 by goroutine 44:
strings.(*Builder).Write()
/opt/homebrew/Cellar/go/1.18.1/libexec/src/strings/builder.go:89 +0xc0
github.com/hashicorp/terraform-exec/tfexec.writeOutput()
/Users/radeksimko/gopath/src/github.com/hashicorp/terraform-exec/tfexec/cmd.go:241 +0x168
github.com/hashicorp/terraform-exec/tfexec.(*Terraform).runTerraformCmd.func1()
/Users/radeksimko/gopath/src/github.com/hashicorp/terraform-exec/tfexec/cmd_default.go:52 +0x5c
Previous write at 0x00c0004973c8 by goroutine 90:
strings.(*Builder).Write()
/opt/homebrew/Cellar/go/1.18.1/libexec/src/strings/builder.go:89 +0x14c
io.(*multiWriter).Write()
/opt/homebrew/Cellar/go/1.18.1/libexec/src/io/multi.go:60 +0xb8
github.com/hashicorp/terraform-exec/tfexec.writeOutput()
/Users/radeksimko/gopath/src/github.com/hashicorp/terraform-exec/tfexec/cmd.go:241 +0x168
github.com/hashicorp/terraform-exec/tfexec.(*Terraform).runTerraformCmd.func2()
/Users/radeksimko/gopath/src/github.com/hashicorp/terraform-exec/tfexec/cmd_default.go:55 +0x5c
Goroutine 44 (running) created at:
github.com/hashicorp/terraform-exec/tfexec.(*Terraform).runTerraformCmd()
/Users/radeksimko/gopath/src/github.com/hashicorp/terraform-exec/tfexec/cmd_default.go:51 +0x37c
github.com/hashicorp/terraform-exec/tfexec.(*Terraform).Plan()
/Users/radeksimko/gopath/src/github.com/hashicorp/terraform-exec/tfexec/plan.go:104 +0x70
github.com/hashicorp/terraform-exec/tfexec/internal/e2etest.TestMissingVar.func1()
/Users/radeksimko/gopath/src/github.com/hashicorp/terraform-exec/tfexec/internal/e2etest/errors_test.go:90 +0x83c
github.com/hashicorp/terraform-exec/tfexec/internal/e2etest.runTestVersions.func1()
/Users/radeksimko/gopath/src/github.com/hashicorp/terraform-exec/tfexec/internal/e2etest/util_test.go:112 +0x7b4
testing.tRunner()
/opt/homebrew/Cellar/go/1.18.1/libexec/src/testing/testing.go:1439 +0x18c
testing.(*T).Run.func1()
/opt/homebrew/Cellar/go/1.18.1/libexec/src/testing/testing.go:1486 +0x44
Goroutine 90 (finished) created at:
github.com/hashicorp/terraform-exec/tfexec.(*Terraform).runTerraformCmd()
/Users/radeksimko/gopath/src/github.com/hashicorp/terraform-exec/tfexec/cmd_default.go:54 +0x464
github.com/hashicorp/terraform-exec/tfexec.(*Terraform).Plan()
/Users/radeksimko/gopath/src/github.com/hashicorp/terraform-exec/tfexec/plan.go:104 +0x70
github.com/hashicorp/terraform-exec/tfexec/internal/e2etest.TestMissingVar.func1()
/Users/radeksimko/gopath/src/github.com/hashicorp/terraform-exec/tfexec/internal/e2etest/errors_test.go:72 +0x440
github.com/hashicorp/terraform-exec/tfexec/internal/e2etest.runTestVersions.func1()
/Users/radeksimko/gopath/src/github.com/hashicorp/terraform-exec/tfexec/internal/e2etest/util_test.go:112 +0x7b4
testing.tRunner()
/opt/homebrew/Cellar/go/1.18.1/libexec/src/testing/testing.go:1439 +0x18c
testing.(*T).Run.func1()
/opt/homebrew/Cellar/go/1.18.1/libexec/src/testing/testing.go:1486 +0x44
==================
==================
WARNING: DATA RACE
Read at 0x00c0000e21a8 by goroutine 44:
runtime.growslice()
/opt/homebrew/Cellar/go/1.18.1/libexec/src/runtime/slice.go:166 +0x0
strings.(*Builder).Write()
/opt/homebrew/Cellar/go/1.18.1/libexec/src/strings/builder.go:89 +0x100
github.com/hashicorp/terraform-exec/tfexec.writeOutput()
/Users/radeksimko/gopath/src/github.com/hashicorp/terraform-exec/tfexec/cmd.go:241 +0x168
github.com/hashicorp/terraform-exec/tfexec.(*Terraform).runTerraformCmd.func1()
/Users/radeksimko/gopath/src/github.com/hashicorp/terraform-exec/tfexec/cmd_default.go:52 +0x5c
Previous write at 0x00c0000e21ac by goroutine 90:
runtime.slicecopy()
/opt/homebrew/Cellar/go/1.18.1/libexec/src/runtime/slice.go:295 +0x0
strings.(*Builder).Write()
/opt/homebrew/Cellar/go/1.18.1/libexec/src/strings/builder.go:89 +0x144
io.(*multiWriter).Write()
/opt/homebrew/Cellar/go/1.18.1/libexec/src/io/multi.go:60 +0xb8
github.com/hashicorp/terraform-exec/tfexec.writeOutput()
/Users/radeksimko/gopath/src/github.com/hashicorp/terraform-exec/tfexec/cmd.go:241 +0x168
github.com/hashicorp/terraform-exec/tfexec.(*Terraform).runTerraformCmd.func2()
/Users/radeksimko/gopath/src/github.com/hashicorp/terraform-exec/tfexec/cmd_default.go:55 +0x5c
Goroutine 44 (running) created at:
github.com/hashicorp/terraform-exec/tfexec.(*Terraform).runTerraformCmd()
/Users/radeksimko/gopath/src/github.com/hashicorp/terraform-exec/tfexec/cmd_default.go:51 +0x37c
github.com/hashicorp/terraform-exec/tfexec.(*Terraform).Plan()
/Users/radeksimko/gopath/src/github.com/hashicorp/terraform-exec/tfexec/plan.go:104 +0x70
github.com/hashicorp/terraform-exec/tfexec/internal/e2etest.TestMissingVar.func1()
/Users/radeksimko/gopath/src/github.com/hashicorp/terraform-exec/tfexec/internal/e2etest/errors_test.go:90 +0x83c
github.com/hashicorp/terraform-exec/tfexec/internal/e2etest.runTestVersions.func1()
/Users/radeksimko/gopath/src/github.com/hashicorp/terraform-exec/tfexec/internal/e2etest/util_test.go:112 +0x7b4
testing.tRunner()
/opt/homebrew/Cellar/go/1.18.1/libexec/src/testing/testing.go:1439 +0x18c
testing.(*T).Run.func1()
/opt/homebrew/Cellar/go/1.18.1/libexec/src/testing/testing.go:1486 +0x44
Goroutine 90 (finished) created at:
github.com/hashicorp/terraform-exec/tfexec.(*Terraform).runTerraformCmd()
/Users/radeksimko/gopath/src/github.com/hashicorp/terraform-exec/tfexec/cmd_default.go:54 +0x464
github.com/hashicorp/terraform-exec/tfexec.(*Terraform).Plan()
/Users/radeksimko/gopath/src/github.com/hashicorp/terraform-exec/tfexec/plan.go:104 +0x70
github.com/hashicorp/terraform-exec/tfexec/internal/e2etest.TestMissingVar.func1()
/Users/radeksimko/gopath/src/github.com/hashicorp/terraform-exec/tfexec/internal/e2etest/errors_test.go:72 +0x440
github.com/hashicorp/terraform-exec/tfexec/internal/e2etest.runTestVersions.func1()
/Users/radeksimko/gopath/src/github.com/hashicorp/terraform-exec/tfexec/internal/e2etest/util_test.go:112 +0x7b4
testing.tRunner()
/opt/homebrew/Cellar/go/1.18.1/libexec/src/testing/testing.go:1439 +0x18c
testing.(*T).Run.func1()
/opt/homebrew/Cellar/go/1.18.1/libexec/src/testing/testing.go:1486 +0x44
==================
--- FAIL: TestMissingVar (1.00s)
--- FAIL: TestMissingVar/var-1.1.9 (0.43s)
util_test.go:124: [INFO] running Terraform command: /var/folders/9w/pddq2x656j76vxvsbhcs4nwr0000gq/T/terraform_4195147034/terraform init -no-color -force-copy -input=false -backend=true -get=true -upgrade=false
util_test.go:124: [INFO] running Terraform command: /var/folders/9w/pddq2x656j76vxvsbhcs4nwr0000gq/T/terraform_4195147034/terraform plan -no-color -input=false -detailed-exitcode -lock-timeout=0s -lock=true -parallelism=10 -refresh=true -var no_default_really_long_variable_name_that_will_line_wrap_tf_output=foo
util_test.go:124: [INFO] running Terraform command: /var/folders/9w/pddq2x656j76vxvsbhcs4nwr0000gq/T/terraform_4195147034/terraform plan -no-color -input=false -detailed-exitcode -lock-timeout=0s -lock=true -parallelism=10 -refresh=true -var no_default=foo
util_test.go:124: [INFO] running Terraform command: /var/folders/9w/pddq2x656j76vxvsbhcs4nwr0000gq/T/terraform_4195147034/terraform plan -no-color -input=false -detailed-exitcode -lock-timeout=0s -lock=true -parallelism=10 -refresh=true -var no_default=foo -var no_default_really_long_variable_name_that_will_line_wrap_tf_output=foo
util_test.go:114: CLI Output:
Initializing the backend...
Initializing provider plugins...
Terraform has been successfully initialized!
Error: No value for required variable
on main.tf line 5:
5: variable "no_default" {
The root module input variable "no_default" is not set, and has no default
value. Use a -var or -var-file command line argument to provide a value for
this variable.
Error: No value for required variable
on main.tf line 8:
8: variable "no_default_really_long_variable_name_that_will_line_wrap_tf_output" {
The root module input variable
"no_default_really_long_variable_name_that_will_line_wrap_tf_output" is not
set, and has no default value. Use a -var or -var-file command line argument
to provide a value for this variable.
No changes. Your infrastructure matches the configuration.
Terraform has compared your real infrastructure against your configuration
and found no differences, so no changes are needed.
testing.go:1312: race detected during execution of test
testing.go:1312: race detected during execution of test
--- FAIL: TestWorkspace_multiple (1.03s)
--- FAIL: TestWorkspace_multiple/workspaces-1.0.11 (0.70s)
util_test.go:124: [INFO] running Terraform command: /var/folders/9w/pddq2x656j76vxvsbhcs4nwr0000gq/T/terraform_2318826880/terraform workspace list -no-color
util_test.go:124: [INFO] running Terraform command: /var/folders/9w/pddq2x656j76vxvsbhcs4nwr0000gq/T/terraform_2318826880/terraform workspace show -no-color
util_test.go:124: [INFO] running Terraform command: /var/folders/9w/pddq2x656j76vxvsbhcs4nwr0000gq/T/terraform_2318826880/terraform workspace new -no-color new1
util_test.go:124: [INFO] running Terraform command: /var/folders/9w/pddq2x656j76vxvsbhcs4nwr0000gq/T/terraform_2318826880/terraform workspace list -no-color
util_test.go:124: [INFO] running Terraform command: /var/folders/9w/pddq2x656j76vxvsbhcs4nwr0000gq/T/terraform_2318826880/terraform workspace show -no-color
util_test.go:124: [INFO] running Terraform command: /var/folders/9w/pddq2x656j76vxvsbhcs4nwr0000gq/T/terraform_2318826880/terraform workspace select -no-color foo
util_test.go:124: [INFO] running Terraform command: /var/folders/9w/pddq2x656j76vxvsbhcs4nwr0000gq/T/terraform_2318826880/terraform workspace list -no-color
--- FAIL: TestWorkspace_multiple/workspaces-1.0.11/select_non-default_workspace (0.11s)
workspace_test.go:151: got error querying workspace list: read |0: file already closed
util_test.go:114: CLI Output:
default
* foo
foo
Created and switched to workspace "new1"!
You're now on a new, empty workspace. Workspaces isolate their state,
so if you run "terraform plan" Terraform will not see any existing state
for this configuration.
default
foo
* new1
new1
Switched to workspace "foo".
default
* foo
new1
--- FAIL: TestWorkspace_multiple/workspaces-1.1.9 (0.33s)
util_test.go:124: [INFO] running Terraform command: /var/folders/9w/pddq2x656j76vxvsbhcs4nwr0000gq/T/terraform_4195147034/terraform workspace list -no-color
workspace_test.go:151: got error querying workspace list: read |0: file already closed
--- FAIL: TestWorkspace_deletion (1.26s)
--- FAIL: TestWorkspace_deletion/basic-1.1.9 (0.39s)
util_test.go:124: [INFO] running Terraform command: /var/folders/9w/pddq2x656j76vxvsbhcs4nwr0000gq/T/terraform_4195147034/terraform workspace list -no-color
util_test.go:124: [INFO] running Terraform command: /var/folders/9w/pddq2x656j76vxvsbhcs4nwr0000gq/T/terraform_4195147034/terraform workspace show -no-color
util_test.go:124: [INFO] running Terraform command: /var/folders/9w/pddq2x656j76vxvsbhcs4nwr0000gq/T/terraform_4195147034/terraform workspace new -no-color testws
--- FAIL: TestWorkspace_deletion/basic-1.1.9/create_and_delete_workspace (0.03s)
workspace_test.go:124: got error creating workspace: read |0: file already closed
util_test.go:114: CLI Output:
* default
default
Created and switched to workspace "testws"!
You're now on a new, empty workspace. Workspaces isolate their state,
so if you run "terraform plan" Terraform will not see any existing state
for this configuration.
--- FAIL: TestDestroy (2.88s)
--- FAIL: TestDestroy/basic-1.1.9 (0.55s)
util_test.go:95: unable to determine running version (expected "1.1.9"): read |0: file already closed
--- FAIL: TestFormat (0.65s)
--- FAIL: TestFormat/-1.1.9 (0.27s)
util_test.go:95: unable to determine running version (expected "1.1.9"): read |0: file already closed
panic: test timed out after 10m0s
goroutine 5745 [running]:
testing.(*M).startAlarm.func1()
/opt/homebrew/Cellar/go/1.18.1/libexec/src/testing/testing.go:2029 +0xb8
created by time.goFunc
/opt/homebrew/Cellar/go/1.18.1/libexec/src/time/sleep.go:176 +0x4c
goroutine 1 [chan receive]:
testing.(*T).Run(0xc0011c11e0, {0x1056f5699, 0xb}, 0x105941490)
/opt/homebrew/Cellar/go/1.18.1/libexec/src/testing/testing.go:1487 +0x580
testing.runTests.func1(0x0?)
/opt/homebrew/Cellar/go/1.18.1/libexec/src/testing/testing.go:1839 +0x98
testing.tRunner(0xc0011c11e0, 0xc0001bda38)
/opt/homebrew/Cellar/go/1.18.1/libexec/src/testing/testing.go:1439 +0x190
testing.runTests(0xc0002dbcc0?, {0x105d0f740, 0x39, 0x39}, {0xc000207ad8?, 0x10506cfb0?, 0x105d164e0?})
/opt/homebrew/Cellar/go/1.18.1/libexec/src/testing/testing.go:1837 +0x6cc
testing.(*M).Run(0xc0002dbcc0)
/opt/homebrew/Cellar/go/1.18.1/libexec/src/testing/testing.go:1719 +0x87c
github.com/hashicorp/terraform-exec/tfexec/internal/e2etest.TestMain.func1(0xc0002f6201?)
/Users/radeksimko/gopath/src/github.com/hashicorp/terraform-exec/tfexec/internal/e2etest/main_test.go:22 +0x1b0
github.com/hashicorp/terraform-exec/tfexec/internal/e2etest.TestMain(0x0?)
/Users/radeksimko/gopath/src/github.com/hashicorp/terraform-exec/tfexec/internal/e2etest/main_test.go:23 +0x30
main.main()
_testmain.go:161 +0x308
goroutine 5743 [IO wait]:
internal/poll.runtime_pollWait(0x12de78fc8, 0x72)
/opt/homebrew/Cellar/go/1.18.1/libexec/src/runtime/netpoll.go:302 +0xa4
internal/poll.(*pollDesc).wait(0xc00058e5b8, 0xc0004e2000?, 0x1)
/opt/homebrew/Cellar/go/1.18.1/libexec/src/internal/poll/fd_poll_runtime.go:83 +0xc4
internal/poll.(*pollDesc).waitRead(...)
/opt/homebrew/Cellar/go/1.18.1/libexec/src/internal/poll/fd_poll_runtime.go:88
internal/poll.(*FD).Read(0xc00058e5a0, {0xc0004e2000, 0x1000, 0x1000})
/opt/homebrew/Cellar/go/1.18.1/libexec/src/internal/poll/fd_unix.go:167 +0x2f0
os.(*File).read(...)
/opt/homebrew/Cellar/go/1.18.1/libexec/src/os/file_posix.go:31
os.(*File).Read(0xc0004be0b8, {0xc0004e2000, 0x1000, 0x1000})
/opt/homebrew/Cellar/go/1.18.1/libexec/src/os/file.go:119 +0x94
bufio.(*Reader).fill(0xc00032df00)
/opt/homebrew/Cellar/go/1.18.1/libexec/src/bufio/bufio.go:106 +0x21c
bufio.(*Reader).ReadSlice(0xc00032df00, 0x0?)
/opt/homebrew/Cellar/go/1.18.1/libexec/src/bufio/bufio.go:371 +0x60
bufio.(*Reader).collectFragments(0x105105818?, 0x0?)
/opt/homebrew/Cellar/go/1.18.1/libexec/src/bufio/bufio.go:446 +0x70
bufio.(*Reader).ReadBytes(0xc0002fa060?, 0x0?)
/opt/homebrew/Cellar/go/1.18.1/libexec/src/bufio/bufio.go:474 +0x38
github.com/hashicorp/terraform-exec/tfexec.writeOutput({0x105948760?, 0xc0004be0b8}, {0x105946228, 0xc0002fa060})
/Users/radeksimko/gopath/src/github.com/hashicorp/terraform-exec/tfexec/cmd.go:239 +0x144
github.com/hashicorp/terraform-exec/tfexec.(*Terraform).runTerraformCmd.func1()
/Users/radeksimko/gopath/src/github.com/hashicorp/terraform-exec/tfexec/cmd_default.go:52 +0x60
created by github.com/hashicorp/terraform-exec/tfexec.(*Terraform).runTerraformCmd
/Users/radeksimko/gopath/src/github.com/hashicorp/terraform-exec/tfexec/cmd_default.go:51 +0x380
goroutine 6279 [syscall]:
syscall.syscall6(0x10588d080?, 0xc00058e6c0?, 0xc0001b9978?, 0x104ff7d10?, 0x104fb8970?, 0x0?, 0x0?)
/opt/homebrew/Cellar/go/1.18.1/libexec/src/runtime/sys_darwin.go:44 +0x48
syscall.wait4(0xc0003be480?, 0xc0001b9978, 0xc0003be480?, 0xc0003be480)
/opt/homebrew/Cellar/go/1.18.1/libexec/src/syscall/zsyscall_darwin_arm64.go:43 +0x68
syscall.Wait4(0xc0001b9a28?, 0xc0001b99d8, 0x20?, 0xc0003e4120?)
/opt/homebrew/Cellar/go/1.18.1/libexec/src/syscall/syscall_bsd.go:144 +0x4c
os.(*Process).wait(0xc0000425a0)
/opt/homebrew/Cellar/go/1.18.1/libexec/src/os/exec_unix.go:43 +0xbc
os.(*Process).Wait(...)
/opt/homebrew/Cellar/go/1.18.1/libexec/src/os/exec.go:132
os/exec.(*Cmd).Wait(0xc0003e4000)
/opt/homebrew/Cellar/go/1.18.1/libexec/src/os/exec/exec.go:507 +0x8c
github.com/hashicorp/terraform-exec/tfexec.(*Terraform).runTerraformCmd(0xc0002da000, {0x10594a768, 0xc0001a8018}, 0xc0003e4000)
/Users/radeksimko/gopath/src/github.com/hashicorp/terraform-exec/tfexec/cmd_default.go:58 +0x470
github.com/hashicorp/terraform-exec/tfexec.(*Terraform).Init(0x12f0bcf70?, {0x10594a768, 0xc0001a8018}, {0x0, 0x0, 0x0})
/Users/radeksimko/gopath/src/github.com/hashicorp/terraform-exec/tfexec/init.go:101 +0x90
github.com/hashicorp/terraform-exec/tfexec/internal/e2etest.TestRefresh.func1(0xc003730000, 0xe?, 0xc0004e40c0?)
/Users/radeksimko/gopath/src/github.com/hashicorp/terraform-exec/tfexec/internal/e2etest/refresh_test.go:14 +0x60
github.com/hashicorp/terraform-exec/tfexec/internal/e2etest.runTestVersions.func1(0xc003730000)
/Users/radeksimko/gopath/src/github.com/hashicorp/terraform-exec/tfexec/internal/e2etest/util_test.go:112 +0x7b8
testing.tRunner(0xc003730000, 0xc000356000)
/opt/homebrew/Cellar/go/1.18.1/libexec/src/testing/testing.go:1439 +0x190
created by testing.(*T).Run
/opt/homebrew/Cellar/go/1.18.1/libexec/src/testing/testing.go:1486 +0x564
goroutine 6269 [chan receive]:
testing.(*T).Run(0xc000d3dd40, {0xc0011b6025, 0xb}, 0xc000356000)
/opt/homebrew/Cellar/go/1.18.1/libexec/src/testing/testing.go:1487 +0x580
github.com/hashicorp/terraform-exec/tfexec/internal/e2etest.runTestVersions(0xc000d3dd40, {0xc00032cdd8, 0x7, 0x10504133c?}, {0x1056f2d1d, 0x5}, 0x105941488)
/Users/radeksimko/gopath/src/github.com/hashicorp/terraform-exec/tfexec/internal/e2etest/util_test.go:53 +0x28c
github.com/hashicorp/terraform-exec/tfexec/internal/e2etest.runTest(0xc000d3dd40, {0x1056f2d1d, 0x5}, 0x102652047?)
/Users/radeksimko/gopath/src/github.com/hashicorp/terraform-exec/tfexec/internal/e2etest/util_test.go:45 +0x130
github.com/hashicorp/terraform-exec/tfexec/internal/e2etest.TestRefresh(0x0?)
/Users/radeksimko/gopath/src/github.com/hashicorp/terraform-exec/tfexec/internal/e2etest/refresh_test.go:13 +0x44
testing.tRunner(0xc000d3dd40, 0x105941490)
/opt/homebrew/Cellar/go/1.18.1/libexec/src/testing/testing.go:1439 +0x190
created by testing.(*T).Run
/opt/homebrew/Cellar/go/1.18.1/libexec/src/testing/testing.go:1486 +0x564
goroutine 5744 [IO wait]:
internal/poll.runtime_pollWait(0x12de78de8, 0x72)
/opt/homebrew/Cellar/go/1.18.1/libexec/src/runtime/netpoll.go:302 +0xa4
internal/poll.(*pollDesc).wait(0xc00058e678, 0xc000253000?, 0x1)
/opt/homebrew/Cellar/go/1.18.1/libexec/src/internal/poll/fd_poll_runtime.go:83 +0xc4
internal/poll.(*pollDesc).waitRead(...)
/opt/homebrew/Cellar/go/1.18.1/libexec/src/internal/poll/fd_poll_runtime.go:88
internal/poll.(*FD).Read(0xc00058e660, {0xc000253000, 0x1000, 0x1000})
/opt/homebrew/Cellar/go/1.18.1/libexec/src/internal/poll/fd_unix.go:167 +0x2f0
os.(*File).read(...)
/opt/homebrew/Cellar/go/1.18.1/libexec/src/os/file_posix.go:31
os.(*File).Read(0xc0004be0c8, {0xc000253000, 0x1000, 0x1000})
/opt/homebrew/Cellar/go/1.18.1/libexec/src/os/file.go:119 +0x94
bufio.(*Reader).fill(0xc00032bf00)
/opt/homebrew/Cellar/go/1.18.1/libexec/src/bufio/bufio.go:106 +0x21c
bufio.(*Reader).ReadSlice(0xc00032bf00, 0xe0?)
/opt/homebrew/Cellar/go/1.18.1/libexec/src/bufio/bufio.go:371 +0x60
bufio.(*Reader).collectFragments(0x1000?, 0xcc?)
/opt/homebrew/Cellar/go/1.18.1/libexec/src/bufio/bufio.go:446 +0x70
bufio.(*Reader).ReadBytes(0xffffffffffffffff?, 0xff?)
/opt/homebrew/Cellar/go/1.18.1/libexec/src/bufio/bufio.go:474 +0x38
github.com/hashicorp/terraform-exec/tfexec.writeOutput({0x105948760?, 0xc0004be0c8}, {0x105945d48, 0xc00014c108})
/Users/radeksimko/gopath/src/github.com/hashicorp/terraform-exec/tfexec/cmd.go:239 +0x144
github.com/hashicorp/terraform-exec/tfexec.(*Terraform).runTerraformCmd.func2()
/Users/radeksimko/gopath/src/github.com/hashicorp/terraform-exec/tfexec/cmd_default.go:55 +0x60
created by github.com/hashicorp/terraform-exec/tfexec.(*Terraform).runTerraformCmd
/Users/radeksimko/gopath/src/github.com/hashicorp/terraform-exec/tfexec/cmd_default.go:54 +0x468
goroutine 5742 [select]:
os/exec.(*Cmd).Start.func2()
/opt/homebrew/Cellar/go/1.18.1/libexec/src/os/exec/exec.go:449 +0xb4
created by os/exec.(*Cmd).Start
/opt/homebrew/Cellar/go/1.18.1/libexec/src/os/exec/exec.go:448 +0x914
FAIL github.com/hashicorp/terraform-exec/tfexec/internal/e2etest 600.212s
? github.com/hashicorp/terraform-exec/tfexec/internal/testutil [no test files]
FAIL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment