You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TinyGo currently does not support net/http/* packages as documented here.
This is unfortunate as use-cases exist where we would want to import packages that depend on net/http/* but do not need to run networking.
For example in the Kubernetes space, we would like to write programs that depend on k8s.io/api, apimachinery and third-party operator types. Unfortunately these packages depend on net/http packages and we cannot compile them using tinygo.
Resulting in errors such as:
../../../../go/pkg/mod/golang.org/x/net@v0.37.0/internal/httpcommon/request.go:11:2: package net/http/httptrace is not in std (/Users/davidmdm/Library/Caches/tinygo/goroot-844030248698ae6eab7078512b4fefd9cf5525da9617ec2f86276fb6aa7030bc/src/net/http/httptrace)
The ask is to implement/stub/mock enough of net/http to allow tinygo to work with the kubernetes ecosystem at least at the type level.
The ask is NOT to implement networking or http.
@b0ch3nski I am aware of that repo. In some cases it is good enough, but as soon as you want to depend on types found in third party operators you are back to square one.
TinyGo currently does not support
net/http/*
packages as documented here.This is unfortunate as use-cases exist where we would want to import packages that depend on
net/http/*
but do not need to run networking.For example in the Kubernetes space, we would like to write programs that depend on
k8s.io/api
,apimachinery
and third-party operator types. Unfortunately these packages depend onnet/http
packages and we cannot compile them using tinygo.Resulting in errors such as:
The ask is to implement/stub/mock enough of net/http to allow tinygo to work with the kubernetes ecosystem at least at the type level.
The ask is NOT to implement networking or http.
Related issues:
The text was updated successfully, but these errors were encountered: