Cannot compile on macOS
Thanks for the new infrustructure repository.
I'm testing the library. This is my code.
package main
import (
"database/sql"
"log"
_ "modernc.org/sqlite"
)
func main() {
db, err := sql.Open("sqlite", "./data.db")
if err != nil {
log.Fatal(err)
}
db.Ping()
}
The go.mod file is also simple.
module testsqlite
go 1.14
require modernc.org/sqlite v1.3.0
But I cannot build it successfully.
$ go build
../../gopath/pkg/mod/modernc.org/crt/v2@v2.0.0-alpha.2/crt.go:23:2: build constraints exclude all Go files in /xxx/gopath/pkg/mod/modernc.org/crt/v2@v2.0.0-alpha.2/libc/stdio
../../gopath/pkg/mod/modernc.org/crt/v2@v2.0.0-alpha.2/crt64.go:12:2: build constraints exclude all Go files in /xxx/gopath/pkg/mod/modernc.org/crt/v2@v2.0.0-alpha.2/libc/sys/mman
../../gopath/pkg/mod/modernc.org/sqlite@v1.3.0/mutex.go:13:2: build constraints exclude all Go files in /xxx/gopath/pkg/mod/modernc.org/sqlite@v1.3.0/internal/bin