-
Notifications
You must be signed in to change notification settings - Fork 354
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update dependencies to Terraform 0.12.6 #375
Conversation
Does that circular dependency fail the test?
|
If I run diff --git a/tflint/loader_mock.go b/tflint/loader_mock.go
index f479e4c..a8796a5 100644
--- a/tflint/loader_mock.go
+++ b/tflint/loader_mock.go
@@ -8,6 +8,7 @@ import (
gomock "github.com/golang/mock/gomock"
configs "github.com/hashicorp/terraform/configs"
terraform "github.com/hashicorp/terraform/terraform"
+ tflint "github.com/wata727/tflint/tflint"
reflect "reflect"
)
@@ -50,10 +51,10 @@ func (mr *MockAbstractLoaderMockRecorder) LoadConfig(arg0 interface{}) *gomock.C
}
// LoadAnnotations mocks base method
-func (m *MockAbstractLoader) LoadAnnotations(arg0 string) (map[string]Annotations, error) {
+func (m *MockAbstractLoader) LoadAnnotations(arg0 string) (map[string]tflint.Annotations, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "LoadAnnotations", arg0)
- ret0, _ := ret[0].(map[string]Annotations)
+ ret0, _ := ret[0].(map[string]tflint.Annotations)
ret1, _ := ret[1].(error)
return ret0, ret1
} and it fails to build:
I just installed Mockgen. So it's at commit |
That's strange. There may be a problem with the versions of mockgen and Go. Can you update the mockgen to the latest? My environment:
|
This is the latest. This might be because I don't have |
Ah, ok. My gomock seems to be old.
|
I found out why. If I check out It was because I had Anyway I think this should not affect the PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. I'll release it tonight.
Fixes #374
I had to edit the generated
tflint/loader_mock.go
because it was creating a circular dependency.