Skip to content

Commit 5254b81

Browse files
authoredDec 20, 2023
Merge pull request #741 from LandonTClipp/clarification
Add clarification on internal error
2 parents 4f9dc15 + a199cfb commit 5254b81

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed
 

‎docs/notes.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,13 @@ internal error: package without types was imported
1515

1616
[https://github.com/vektra/mockery/issues/475](https://github.com/vektra/mockery/issues/475)
1717

18-
This issue indicates an incompatibility that exists with one of your cached Golang packages. The solution is to run `go clean -modcache`.
18+
This issue indicates that you have attempted to use package in your dependency tree (whether direct or indirect) that uses Go language semantics that your currently-running Go version does not support. The solution:
1919

20-
This issue also happens when compiling from source, such as with `go install`. You would not encounter this issue if using one of the installation methods that install pre-built binaries, like downloading the `.tar.gz` binaries, or through `brew install`.
20+
1. Update to the latest go version
21+
2. Delete all cached packages with `go clean -modcache`
22+
3. Reinstall mockery
23+
24+
Additionally, this issue only happens when compiling mockery from source, such as with `go install`. Our docs [recommend not to use `go install`](installation/#go-install) as the success of your build depends on the compatibility of your Go version with the semantics in use. You would not encounter this issue if using one of the installation methods that install pre-built binaries, like downloading the `.tar.gz` binaries, or through `brew install`.
2125

2226
Multiple Expectations With Identical Arguments
2327
-----------------------------------------------

0 commit comments

Comments
 (0)
Please sign in to comment.