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,