chrislusf / glow

Glow is an easy-to-use distributed computation system written in Go, similar to Hadoop Map Reduce, Spark, Flink, Storm, etc. I am also working on another similar pure Go system, https://github.com/chrislusf/gleam , which is more flexible and more performant.
3.2k stars 248 forks source link

Installation steps #1

Closed mandolyte closed 8 years ago

mandolyte commented 8 years ago

There's no "go get" command to show how to install, but I guessed with:

go get -u github.com/chrislusf/glow

which returned no errors, but when I did a go run on the first sample in README.md, I get this:

$ go run glow1.go 
../src/github.com/chrislusf/glow/flow/dataset_sort.go:7:2: cannot find package "github.com/psilva261/timsort" in any of:
    /usr/local/go/src/github.com/psilva261/timsort (from $GOROOT)
    /home/cecil/Workspace/src/github.com/psilva261/timsort (from $GOPATH)
$ 

Looks like there may be dependencies? Could you update the README to provide install instructions?

chrislusf commented 8 years ago

The installation instructions should just be:

go get github.com/chrislusf/glow
go get github.com/chrislusf/glow/flow
ctd1500 commented 8 years ago

I've noticed that sometimes "go get" can act oddly, so I don't tend to use "go get github.com/user/repo". Instead, simply place the import in your code, such as making a main.go containing the sample from the readme. In the same directory as your new main.go, type:

go get

Without any parameters, it will download all of the imports and dependencies in your code automatically. This worked perfectly for me with the sample.

chrislusf commented 8 years ago

@ctd1500 Thanks for the tip!

I just figured it out one minute ahead of your post. :)