From 3572cc18113aba39454cc52562812dbcc6b9154c Mon Sep 17 00:00:00 2001 From: Jamie Tanna Date: Mon, 23 May 2022 21:10:38 +0100 Subject: [PATCH] Improve debugging help for reflection errors As it's not super clear that the fixes listed below are directly related to this issue. --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index a4213e50..fcd72ea8 100644 --- a/README.md +++ b/README.md @@ -263,6 +263,9 @@ If the received value is `3`, then it will be printed as `03`. ```text cannot find package "." ... github.com/golang/mock/mockgen/model + +prog.go:14:2: no required module provides package ...: go.mod file not found in current directory or any parent directory; see 'go help modules' +prog.go:12:2: no required module provides package github.com/golang/mock/mockgen/model: go.mod file not found in current directory or any parent directory; see 'go help modules' ``` If you come across this error while using reflect mode and vendoring