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

Partial TLS support for wasm #4167

Open
3ddi opened this issue Feb 29, 2024 · 0 comments
Open

Partial TLS support for wasm #4167

3ddi opened this issue Feb 29, 2024 · 0 comments
Labels
wasm WebAssembly

Comments

@3ddi
Copy link

3ddi commented Feb 29, 2024

I am trying to compile a program that imports some grpc consts for wasm.
The code was compiling perfectly fine on 0.30.0 while after upgrading to 0.31.1 I keep getting:

../../../../pkg/mod/google.golang.org/[email protected]/internal/credentials/spiffe.go:37:15: state.PeerCertificates undefined (type tls.ConnectionState has no field or method PeerCertificates)
../../../../pkg/mod/google.golang.org/[email protected]/internal/credentials/spiffe.go:37:51: state.PeerCertificates undefined (type tls.ConnectionState has no field or method PeerCertificates)
../../../../pkg/mod/google.golang.org/[email protected]/internal/credentials/spiffe.go:40:32: state.PeerCertificates undefined (type tls.ConnectionState has no field or method PeerCertificates)
../../../../pkg/mod/google.golang.org/[email protected]/internal/credentials/spiffe.go:40:32: state.PeerCertificates undefined (type tls.ConnectionState has no field or method PeerCertificates)
../../../../pkg/mod/google.golang.org/[email protected]/internal/credentials/util.go:51:13: cfg.Clone undefined (type *tls.Config has no field or method Clone)

by simply importing "google.golang.org/grpc/codes"

I suspect it happens as a result of adaptation made for tls to work with #3704 PR. Was this intentional and I should change something on my side?

Thanks

@3ddi 3ddi changed the title Failing to include grpc in build Failing to import grpc in build Feb 29, 2024
@3ddi 3ddi changed the title Failing to import grpc in build Failing to import grpc in wasm build Feb 29, 2024
@3ddi 3ddi changed the title Failing to import grpc in wasm build Partial TLS support for wasm Mar 3, 2024
@orsinium orsinium added the wasm WebAssembly label Apr 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wasm WebAssembly
Projects
None yet
Development

No branches or pull requests

2 participants