loklak / loklak_go_api

Go library client for using the Loklak API
1.06k stars 6 forks source link

Use test instead of install #7

Closed yukiisbored closed 7 years ago

yukiisbored commented 7 years ago

Install is redundant at this point, because Travis installs them to the actual directory.

It's preferable to use test instead of install because it runs Unit tests like the examples.

For this, failures are allowed because the code is actually dead and won't work at all.

yukiisbored commented 7 years ago

@sudheesh001 go install is not needed. In case you don't know what go install does, It basically copies the files to the directory with the repository URL ( in this case $GOPATH/src/github.com/loklak/loklak_api_go ). Since, it's already being done by Travis, it's not needed. Except, if it's a runnable program (using package main and have func main()) which it'll compiles and installs it to $GOPATH/bin/<name>.

The project source code will be placed in GOPATH/src/github.com/user/repo by default

From Travis' Docs about Go