Doesn't work when using single-word package names? #758
Unanswered
danawoodman
asked this question in
Q&A
Replies: 2 comments 5 replies
-
And a follow up question, how can I make mockery generate code with a package name like |
Beta Was this translation helpful? Give feedback.
1 reply
-
I don't know for sure but I think Go assumes that non-qualified names are part of the stdlib. This would not be a mockery-specific behavior. What happens if you put |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm probably doing something wrong, but with my package
lprd
(module lprd
), I'm getting an error that seems to imply mockery is looking in the std lib for my package and not the current workspace. What am I doing wrong?I get the following error when running
mockery
:12 Feb 24 16:50 PST ERR encountered error when loading package error="-: package lprd is not in std (/usr/local/go/src/lprd)" dry-run=false version=v2.40.3
Using Go v1.22.0 and
Beta Was this translation helpful? Give feedback.
All reactions