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 even have to
copy them.


On Sat, Jan 19, 2019 at 7:37 PM Tycho Andersen <ty...@tycho.ws> wrote:

> On Fri, Jan 18, 2019 at 09:54:51PM -0500, Ian Denhardt wrote:
> > You could just do:
> >
> > go build ./cmd/...
> > cp ./cmd/foo/foo ./
> > cp ./cmd/bar/bar ./
> >
> > ..and wrap it up in a script.
>
> go build doesn't seem to produce binaries, though? In any case, Paul's
> suggestion in a sibling mail works well enough, thanks!
>
> Tycho
>
> --
> You received this message because you are subscribed to the Google Groups
> "golang-nuts" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to golang-nuts+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to