cybozu-go / aptutil

Go utilities for Debian APT repositories
MIT License
125 stars 29 forks source link

Explain build process #4

Closed xipmix closed 8 years ago

xipmix commented 8 years ago

Can you explain how to build this more clearly? I've never used go before and the conventions are weird. I tried this

mkdir -p ~/gocode/bin
mkdir ~/gocode/src
cd ~/gocode/src
go get -u github.com/cybozu-go/aptutil
go install -v github.com/cybozu-go/aptutil

and nothing happens. I tried

 go build -v github.com/cybozu-go/aptutil/cacher

and got a face full of errors about missing dependencies.

ymmt2005 commented 8 years ago

Please try:

go get -u github.com/cybozu-go/aptutil/...
go install github.com/cybozu-go/aptutil/...
yutannihilation commented 8 years ago

@ymmt2005 Maybe we should consider distributing pre-built binaries for those who are not familiar with Go. I guess Travis can do it: https://docs.travis-ci.com/user/deployment/releases

ymmt2005 commented 8 years ago

@yutannihilation Agreed. PR is welcome :-)

xipmix commented 8 years ago

On Tue, Aug 02, 2016 at 04:48:39AM -0700, Yamamoto, Hirotaka wrote:

Please try:

go get -u github.com/cybozu-go/aptutil/...
go install github.com/cybozu-go/aptutil/...

As I explained in my request I tried that. To me, the ellipsis (...) means 'something goes here'. Do you mean I should use exactly the commands above, including the ... ? Or are you using the ... as short-hand for something else. If so, please can you explain what that something else is.

xipmix commented 8 years ago

On Tue, Aug 02, 2016 at 05:00:40AM -0700, yutannihilation wrote:

@ymmt2005 Maybe we should consider distributing pre-built binaries for those who are not familiar with Go. I guess Travis can do it: https://docs.travis-ci.com/user/deployment/releases

I think a good start would be a shell script that can be run from inside a git clone of this repository, that builds the code for you in your environment. It would need to include example settings of GOPATH if those are needed. That should be enough to get the curious going.


You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub: https://github.com/cybozu-go/aptutil/issues/4#issuecomment-236883260

ymmt2005 commented 8 years ago

@xipmix Use exactly the commands including "..." literally. "..." specifies all sub packages under the directory for Go.

xipmix commented 8 years ago

On Tue, Aug 02, 2016 at 04:52:48PM -0700, Yamamoto, Hirotaka wrote:

@xipmix Use exactly the commands including "..." literally. "..." specifies all sub packages under the directory for Go.

Ah! Thank you. This patch may help avoid such questions in future.

diff --git a/README.md b/README.md index f863fef..e16ce0a 100644 --- a/README.md +++ b/README.md @@ -31,6 +31,8 @@ Build


Use Go 1.6 or better. +Run the command below exactly as shown, including the ellipsis. +They are significant - see 'go help packages'.

 go get -u github.com/cybozu-go/aptutil/...

> ---
> You are receiving this because you were mentioned.
> Reply to this email directly or view it on GitHub:
> https://github.com/cybozu-go/aptutil/issues/4#issuecomment-237086512

-- 
ymmt2005 commented 8 years ago

Great, thank you! I will update README.md later.