My Hugo Journey

HOME

Roll back Hugo

The latest version of Hugo 0.62 introduced a breaking change. My homepage didn’t list the blog posts any more.

  1. brew unlink hugo

  2. Search for the Hugo package formula:

https://github.com/Homebrew/homebrew-core/search?utf8=%E2%9C%93&q=hugo&type=

  1. Click on that file (Formula/hugo.rb), and press the History button (commits) to see all the previous versions.

  2. Navigate to the previous version you need, for me it turned out to be 0.59, and then click the <> button to see the homebrew-core repository for that version.

  3. Open the Formula/hugo.rb file, and click Raw to get the direct URL to that file.

Then use it as the argument for brew. For example:

Roll back to version 0.59 …

brew extract hugo https://raw.githubusercontent.com/Homebrew/homebrew-core/6feb9c77f8b803409d31cbe633201fe3a1b15cd4/Formula/hugo.rb