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

执行go-mutesting example/ error #93

Open
chengyiqiang opened this issue Oct 21, 2021 · 1 comment
Open

执行go-mutesting example/ error #93

chengyiqiang opened this issue Oct 21, 2021 · 1 comment

Comments

@chengyiqiang
Copy link

当我执行go-mutesting example/ 是就会报出这样的错误,这是什么原因
image

@barigorokarl
Copy link

We've recently ran into the same problem.
We've debugged go-mutesting and found the problem occures here: https://github.com/zimmski/go-mutesting/blob/master/parse.go#L59

We were able to fix it on our side by making sure that main.go lies in the root of the project an go.mod module name is accordingly.

The go code compiles either way, so it might be a configuration problem for packages.Load(): https://cs.opensource.google/go/x/tools/+/release-branch.go1.14:go/packages/packages.go;l=208 - not sure about the version of x/tools/go/packages though.

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

2 participants