wasmer-go icon indicating copy to clipboard operation
wasmer-go copied to clipboard

Fail to execute the simple.go example.

Open orangeC23 opened this issue 1 year ago • 3 comments

Summary

Fail to execute the simple.go example.

Additional details

When executing the https://github.com/wasmerio/wasmer-go/blob/master/examples/appendices/simple.go example, it prints : no required module provides package github.com/wasmerio/wasmer-go/wasmer: go.mod file not found in current directory or any parent directory; see 'go help modules'

orangeC23 avatar Apr 09 '23 02:04 orangeC23

get this:

go get github.com/wasmerio/wasmer-go/wasmer

wwwAngHua avatar Mar 19 '24 07:03 wwwAngHua

go mod init xxx

wwwAngHua avatar Mar 19 '24 07:03 wwwAngHua

I was having this problem but solved it by adding my project directory to my go.work file... idk if this helps (and it's also been a year+ since you asked, but i found your post in trying to solve my own problem and wanted to share what worked for me)

glloydNAT avatar May 24 '24 17:05 glloydNAT