From 80e4c59ae7a7cf4cb78e83ab10b3eb13e3664688 Mon Sep 17 00:00:00 2001 From: Pat Whittingslow Date: Thu, 9 Apr 2026 10:00:10 -0300 Subject: [PATCH] include tinygo into CI (#67) * try to include tinygo into CI * fix tinygo issues --- .github/workflows/go.yml | 4 +++- examples/httptap/main.go | 2 ++ internet/definitions_tinygo.go | 4 +++- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 6e5c9a3..4c11199 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -23,7 +23,9 @@ jobs: - name: Build run: go build -v ./... - + + - name: TinyGo vet + run: go vet -tags=tinygo ./... # - name: govulncheck # Getting false positives all the time. # uses: golang/govulncheck-action@v1 # with: diff --git a/examples/httptap/main.go b/examples/httptap/main.go index f3c59ae..d393e8e 100644 --- a/examples/httptap/main.go +++ b/examples/httptap/main.go @@ -1,3 +1,5 @@ +//go:build !tinygo && linux + package main import ( diff --git a/internet/definitions_tinygo.go b/internet/definitions_tinygo.go index c684924..75e7869 100644 --- a/internet/definitions_tinygo.go +++ b/internet/definitions_tinygo.go @@ -2,7 +2,9 @@ package internet -func makecbnode(s StackNode) cbnode { +import "github.com/soypat/lneto" + +func makecbnode(s lneto.StackNode) cbnode { return cbnode{ _demux: s.Demux, _encapsulate: s.Encapsulate,