diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b4e0bfb6..37c4da6f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -36,7 +36,7 @@ jobs: run: go mod verify - name: Vet - run: go vet ./... + run: go vet -tags vet ./... - name: Build run: go build -v ./... diff --git a/conn_iter.go b/conn_iter.go index e5a50e2e..81e2a720 100644 --- a/conn_iter.go +++ b/conn_iter.go @@ -1,4 +1,4 @@ -//go:build go1.23 || goexperiment.rangefunc +//go:build (go1.23 || goexperiment.rangefunc) && !vet package sqlite3 diff --git a/conn_old.go b/conn_old.go index ce0c9c52..921011d8 100644 --- a/conn_old.go +++ b/conn_old.go @@ -1,4 +1,4 @@ -//go:build !(go1.23 || goexperiment.rangefunc) +//go:build !(go1.23 || goexperiment.rangefunc) || vet package sqlite3 diff --git a/ext/fileio/coro.go b/ext/fileio/coro.go index f02c575a..4c868675 100644 --- a/ext/fileio/coro.go +++ b/ext/fileio/coro.go @@ -1,4 +1,4 @@ -//go:build !(go1.23 || goexperiment.rangefunc) +//go:build !(go1.23 || goexperiment.rangefunc) || vet package fileio diff --git a/ext/fileio/fsdir_coro.go b/ext/fileio/fsdir_coro.go index 526484fd..8df1013c 100644 --- a/ext/fileio/fsdir_coro.go +++ b/ext/fileio/fsdir_coro.go @@ -1,4 +1,4 @@ -//go:build !(go1.23 || goexperiment.rangefunc) +//go:build !(go1.23 || goexperiment.rangefunc) || vet package fileio diff --git a/ext/fileio/fsdir_iter.go b/ext/fileio/fsdir_iter.go index dd5e0423..1789297f 100644 --- a/ext/fileio/fsdir_iter.go +++ b/ext/fileio/fsdir_iter.go @@ -1,4 +1,4 @@ -//go:build go1.23 || goexperiment.rangefunc +//go:build (go1.23 || goexperiment.rangefunc) && !vet package fileio