Clearing the GOPATH to Go
summary
Company tooling creates a per-project fake GOPATH so a cloned repo builds without moving code or setting env vars; the repo published as hello gopher provides a make setup that creates a local GOPATH with vendor folder support via symlinks, runs go test with race and cgo, produces merged coverage profiles, and cross-compiles incrementally into a bin subfolder. It leaves source untouched so go build/go install still work if the project lives inside a real GOPATH.
AI-written summary · about
chapters (12)
- 0:00Introduction to clearing GOPATH
- 1:03Why GOPATH confuses developers
- 6:54Problems with GOPATH structure
- 12:16Vendor folder solution in Go 1.5+
- 13:40Demo of GVT tool for dependencies
- 16:13Why builds still fail despite fixes
- 18:05Introducing hello gopher tool
- 20:50How hello gopher works under the hood
- 23:43Testing and coverage with hello gopher
- 25:29Cross-compilation support
- 26:53Future of Go path usability
- 28:59Call to action and Q&A
