Cound not import mock packages #978
bh4rtp2023
started this conversation in
General
Replies: 2 comments 6 replies
-
|
It'll be exceedingly difficult to give you an answer without any reproducers or even the YAML config you're using :) |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
@LandonTClipp Thanks for your attention. This is mockery.yaml file: |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Mockery generates interfaces package, i.e.
mocks. It could not be imported. VSCode tells an error:could not import myproject/mypkg/mocks (no required module provides package "myproject/mypkg/mocks") compiler [BrokenImport] (https://pkg.go.dev/golang.org/x/tools/internal/typesinternal#BrokenImport)When generating interfaces package inside
mypkg, it does work.What's wrong with the first configuration?
Beta Was this translation helpful? Give feedback.
All reactions