distribution/vendor/github.com/go-llsqlite/crawshaw/dummy.go

20 lines
575 B
Go

//go:build dummy
// +build dummy
// This file is part of a workaround for `go mod vendor` which won't vendor
// C files if there's no Go file in the same directory.
// This would prevent the c/sqlite3.c file to be vendored.
//
// This Go file imports the c directory where there is another dummy.go file which
// is the second part of this workaround.
//
// These two files combined make it so `go mod vendor` behaves correctly.
//
// See this issue for reference: https://github.com/golang/go/issues/26366
package sqlite
import (
_ "github.com/go-llsqlite/crawshaw/c"
)