logoalt Hacker News

PhilippGillelast Sunday at 10:15 PM0 repliesview on HN

> So, advice: submit the binary you used to generate the site to source control. I know git isn't the best at binary files, but I promise you'll thank me at some point.

No need for the entire binary.

Just put `go run github.com/gohugoio/[email protected] "$@"` into a `hugo.sh` script or similar that's in source control, and then run that script instead of the Hugo binary.

You'll need Go installed, but it's incredibly backwards compatible, so updating to newer Go versions is very unlikely to break running the old Hugo version.