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

Missing various net/http packages in std #4598

Open
inliquid opened this issue Nov 13, 2024 · 3 comments
Open

Missing various net/http packages in std #4598

inliquid opened this issue Nov 13, 2024 · 3 comments
Labels
network Anything to do with network use from TinyGo

Comments

@inliquid
Copy link

This is follow up of #4580 as the initial issue was closed.

I have same issue when trying to build module, which imports quite complex *.proto definitions:

$ tinygo build -o wasm/plugin.wasm -scheduler=none -target=wasip1 --no-debug ./wasm
../../../../pkg/mod/golang.org/x/[email protected]/http2/transport.go:26:2: package net/http/httptrace is not in std (/home/***/.cache/tinygo/goroot-8cbcb1d9555609a60075264735fce03217a624835ebf583eb96aa0c5bf08e840/src/net/http/httptrace)
../../../../pkg/mod/google.golang.org/[email protected]/internal/transport/proxy.go:29:2: package net/http/httputil is not in std (/home/***/.cache/tinygo/goroot-8cbcb1d9555609a60075264735fce03217a624835ebf583eb96aa0c5bf08e840/src/net/http/httputil)

I would like to be able to compile these dependencies into my Wasm modules. And I see a lot of progress, previously there were much more scaring compiler errors, now when reflect support is there, only those left. At the moment I have to regenerate these *.proto definitions using alternative generators.

@deadprogram deadprogram added the network Anything to do with network use from TinyGo label Dec 16, 2024
@scottfeldman
Copy link
Contributor

Is this solved by tinygo-org/net#34?

@inliquid
Copy link
Author

Hi @scottfeldman, I don't see httptrace or httputil was added in that PR.

@scottfeldman
Copy link
Contributor

Hi @scottfeldman, I don't see httptrace or httputil was added in that PR.

Oh, you're right. My bad.

Can you supply your program or a test program I can use to repro? Then I can look into adding httptrace and httputil. THanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
network Anything to do with network use from TinyGo
Projects
None yet
Development

No branches or pull requests

3 participants