Open mauidude opened 4 years ago
I'm not sure what to suggest, I tried creating a simple sample program using bleve and it works fine:
$ mkdir test
$ cd test
... create main.go...
$ cat main.go
package main
import (
"fmt"
"github.com/blevesearch/bleve"
)
func main() {
m := bleve.NewIndexMapping()
fmt.Println(m)
}
$ go mod init github.com/mschoch/test
go: creating new go.mod: module github.com/mschoch/test
$ go build
go: finding module for package github.com/blevesearch/bleve
go: found github.com/blevesearch/bleve in github.com/blevesearch/bleve v1.0.9
$ cat go.mod
module github.com/mschoch/test
go 1.14
require github.com/blevesearch/bleve v1.0.9
I see you were running go get
so I tried a variant with that as well:
$ rm go.mod
$ go mod init github.com/mschoch/test
go: creating new go.mod: module github.com/mschoch/test
$ go get github.com/blevesearch/bleve
go: github.com/blevesearch/bleve upgrade => v1.0.9
Go modules are still mostly a mystery to me, so I don't have anything else to suggest.
Trying to run go get on a project with go modules and I keep getting this error from gopherjs:
Here's the output of my
go env
: