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

tinygo support will need updating for tinygo 0.32 #29

Open
dkegel-fastly opened this issue Jun 4, 2024 · 0 comments
Open

tinygo support will need updating for tinygo 0.32 #29

dkegel-fastly opened this issue Jun 4, 2024 · 0 comments

Comments

@dkegel-fastly
Copy link
Contributor

Current fwd doesn’t compile with the dev branch of tinygo due to incompatibilities with the reflect package introduced in reflect: use int in StringHeader and SliceHeader on non-AVR platforms by ydnar · Pull Request #4156 · tinygo-org/tinygo .

The symptom is

../../../../../pkg/mod/github.com/philhofer/[email protected]/writer_tinygo.go:15:9: cannot use l (variable of type uintptr) as int value in struct literal

A fix might be to use the safer, portable functions suggested in tinygo-org/tinygo#1284 ?

dkegel-fastly added a commit to dkegel-fastly/fwd that referenced this issue Jun 11, 2024
Adds support for tinygo 0.32, thereby fixing philhofer#29

Passes tests on macos intel:
- go 1.21.9:
	- go test
- go 1.21.9 / tinygo 0.32 prerelease:
	- tinygo test
	- tinygo test -target wasi
philhofer pushed a commit that referenced this issue Jun 12, 2024
Adds support for tinygo 0.32, thereby fixing #29

Passes tests on macos intel:
- go 1.21.9:
	- go test
- go 1.21.9 / tinygo 0.32 prerelease:
	- tinygo test
	- tinygo test -target wasi
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

1 participant