Я пытаюсь начать делать terratest со своими сценариями tf, используя Go.
Я установил Go 1.13 в Debain. Я слежу за этим документом .
Я установил свою GOPATH -> / home / go / terratest
GOROOT -> usr / local / go
У меня есть свой test_example. go в / home / go / src / terratest
Когда я пытаюсь запустить "go test"
Я получить следующую ошибку:
package _/home/go/terratest/src (test)
imports github.com/gruntwork-io/terratest/modules/gcp: cannot find package "github.com/gruntwork-io/terratest/modules/gcp" in any of:
/usr/local/go/src/github.com/gruntwork-io/terratest/modules/gcp (from $GOROOT)
/home/go/terratest/src/github.com/gruntwork-io/terratest/modules/gcp (from $GOPATH)
FAIL _/home/go/terratest/src [setup failed]
Может кто-нибудь помочь мне найти мою ошибку, пожалуйста?