Re: [go-nuts] multiple binaries from a single directory with go modules?

2019-01-20 Thread Jinwoo Lee
On Sun, Jan 20, 2019 at 11:20 AM Tycho Andersen wrote: > On Sun, Jan 20, 2019 at 11:18:38AM -0800, Jinwoo Lee wrote: > > It looks like "go build ./cmd/..." works when there's only one directory > > under cmd. When there are multiple directories there, the co

Re: [go-nuts] multiple binaries from a single directory with go modules?

2019-01-20 Thread Jinwoo Lee
On Sun, Jan 20, 2019 at 11:33 AM Jan Mercl <0xj...@gmail.com> wrote: > > > > On Sun, Jan 20, 2019 at 8:22 PM Jinwoo Lee wrote: > > > It looks like "go build ./cmd/..." works when there's only one directory > under cmd. When there are multiple director

Re: [go-nuts] multiple binaries from a single directory with go modules?

2019-01-20 Thread Jinwoo Lee
It looks like "go build ./cmd/..." works when there's only one directory under cmd. When there are multiple directories there, the command doesn't generate any binaries for me. I would just do $ go build ./cmd/foo $ go build ./cmd/bar They create binaries in the current directory so you don't ev