Live data from Hacker News

Ask HN: How do you build your Golang based repo ?

news.ycombinator.com

1–5 of 5 posts

Re: Ask HN: How do you build your Golang based repo ?

#3
You can ask 100 gophers. And obtain 100 different workflows ;)

I like to separate design and code, from build and test, from deploy and monitoring. And I like change. And experimenting with new techniques. dep is definitely next, as well as prometheus.

The things that determine what tools you use are often external to language design itself. How your remote team handles its gitflow. Whether people prefer vim on a remote dev instance or Atom locally with github integration. Are you targeting app engine or container engine.

Regardless of the heterogeneity, having a canonical $GOROOT source tree and deploying binaries makes things much more flexible.

I'll just point to one recent discovery that is helping a lot at the moment and may be useful to other people: godoc for static analysis

https://golang.org/lib/godoc/analysis/help.html

Re: Ask HN: How do you build your Golang based repo ?

#4
We do a decent amount of go at the company I work for. We started out using Makefiles (2 or so years ago) then moved everything to Glide and now we use Dep. Makefiles weren’t fun to deal with so I advise against that. We moved to Dep because we feel that is what the community is converging on. There is no great solution unfortunately. As long as you are able to live with some of the small downsides with any vendoring solution then really any would work.