36.7 Contributing to Hugo: Setting Up the Dev Environment
Right, you want to peek under the hood and maybe even tweak the engine. Good for you. Setting up Hugo’s dev environment isn’t the mystical ritual some projects make it out to be, but it does have a few quirks you need to get right, or you’ll be chasing phantom errors for hours. I’ve been there, and my goal is to make sure you aren’t. First things first: you absolutely must use the version of Go that Hugo specifies. This isn’t a gentle suggestion; it’s the law around these parts. Hugo uses Go modules and leverages specific features of the language that can change between minor versions. Using the wrong version is the single biggest cause of “but it compiles on my machine” problems.