Skip to content
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

linter failing for "github.com/Optum/dce/pkg/awsiface/mocks" types #411

Open
estebane-frb opened this issue Sep 14, 2021 · 1 comment
Open

Comments

@estebane-frb
Copy link

estebane-frb commented Sep 14, 2021

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

@estebane-frb
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant