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

Fail to execute the simple.go example. #381

Open
orangeC23 opened this issue Apr 9, 2023 · 3 comments
Open

Fail to execute the simple.go example. #381

orangeC23 opened this issue Apr 9, 2023 · 3 comments
Labels
❓ question Further information is requested

Comments

@orangeC23
Copy link

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 orangeC23 added the ❓ question Further information is requested label Apr 9, 2023
@wwwAngHua
Copy link

get this:

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

@wwwAngHua
Copy link

go mod init xxx

@glloydNAT
Copy link

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
❓ question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants