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

link error with tinygo how to not pull in net.Resolver? #37

Open
ldemailly opened this issue Jul 19, 2024 · 3 comments
Open

link error with tinygo how to not pull in net.Resolver? #37

ldemailly opened this issue Jul 19, 2024 · 3 comments

Comments

@ldemailly
Copy link

Just doing a wasip1.Listen socket and getting link errors - any way to skip the dial stuff that I don't need on a listen?

# github.com/stealthrocket/net/wasip1
../../../../go/pkg/mod/github.com/stealthrocket/net@v0.2.1/wasip1/dial_wasip1.go:32:22: undefined: net.Resolver
@ldemailly
Copy link
Author

code that does work with regular go:

https://github.com/ldemailly/go-scratch/blob/main/tinyhttp/tinyhttp.go

@achille-roussel
Copy link
Contributor

Hello @ldemailly, thanks for reporting!

If you are compiling with Tinygo, it might be beacuse the Tinygo standard library doesn't have a net.Resolver type.

The code in this repository was only tested with the mainstream Go compiler.

@ldemailly
Copy link
Author

Thanks, I'm trying from both ends to get something working :) Waiting a bit on tinygo side for clarity

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