dce
dce copied to clipboard
linter failing for "github.com/Optum/dce/pkg/awsiface/mocks" types
Version information
- The version of DCE: latest
- OS and version: Mac, Big Sur but also tried Linux Ubuntu 20
- Go version: 1.17 but also tried 1.15
- Terraform version (if using directly): 1.0.6 (I did an upgrade on my fork - terraform seems fine, this is a Golang-related error)
Describe the bug Linter is complaining about several types tied to "github.com/Optum/dce/pkg/awsiface/mocks". Here is a sample error:
var mockIAM *mocks.IAM
cannot use mockIAM (variable of type *mocks.IAM) as awsiface.IAM value in struct literal: missing method ListInstanceProfileTags
Here is another one:
var mockCwe *awsMocks.CloudWatchEventsAPI
cannot use mockCwe (variable of type *"github.com/Optum/dce/pkg/awsiface/mocks".CloudWatchEventsAPI) as cloudwatcheventsiface.CloudWatchEventsAPI value in struct literal: missing method CreateApiDestination
The same error pops up To Reproduce
Expected behavior No linter errors
Additional context
I could be wrong but it seems that this requires that the latest version of mockery be re-run with the latest version against some interface types that AWS has updated in their SDK