Skip to content

feat: switch from go compiler to tinygo#6

Open
NMFR wants to merge 11 commits intomainfrom
feat/tinygo
Open

feat: switch from go compiler to tinygo#6
NMFR wants to merge 11 commits intomainfrom
feat/tinygo

Conversation

@NMFR
Copy link
Copy Markdown
Owner

@NMFR NMFR commented Jan 31, 2025

Switch to tinygo to produce smaller binary (wasm) files.

@NMFR NMFR changed the title feat: swich from go compiler to tinygo feat: switch from go compiler to tinygo Jan 31, 2025
@NMFR
Copy link
Copy Markdown
Owner Author

NMFR commented Jan 31, 2025

On hold due to tinygo not being able to compile dependency with undefined: net.LookupHost:

➜ make build
rm -rf ./bin
find . -type f -name "*.proto" -exec protoc --go_out=. --go_opt=paths=source_relative "{}" \;
mkdir -p bin
GOOS=wasip1 GOARCH=wasm tinygo build -o bin/sqlc-template.wasm cmd/sqlc-template/main.go
# github.com/Masterminds/sprig/v3
../../go/pkg/mod/github.com/!masterminds/sprig/v3@v3.3.0/network.go:9:18: undefined: net.LookupHost
make: *** [Makefile:54: build] Error 1

tinygo-org/tinygo#4722

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

Successfully merging this pull request may close these issues.

1 participant