Post by @michaeljoseph@tech.lgbt
The breaking changes in #Hugo do drive me crazy if you're not using it on an almost daily basis. I wanted to update one page in my blog, and since I last used Hugo it's gone from version 0.159.0 to 0.163.0, this now means the following things don't work:
- Raw .html pages, I have to add a new config option to allow what is now considered insecure files to be added (0.162)
- I can't use
.Paginateon my 404 template page either (can't see the changelog for that) - At least there's a deprecation warning for
.Site.LanguageCodebeing deprecated.
I wish they'd finally adopt semantic versioning, so you can prepare yourself and know when you're going to have to do extra work to get things to work again.
@hl This is one of the big downsides of Hugo, however, as it happens, the host I use - Render.com - while it supports Hugo builds from Github, it's locked into an older version (0.124). There are some support forum entries on how to build with newer versions, but I figured it was just easier to lock my local version into the same one Render had, so I didn't have to worry about breaking changes. Not updating software is usually a bad thing, but with a static site generator, as long as it works, I don't need to use the latest version.
@michaeljoseph Yes, so I do the same thing with the hosting I use at https://www.statichost.eu/, but what catches me out is that my desktop OS updates to a newer version of Hugo, and then I can't preview and check it locally. In this case I've made the one paragraph change to one post, then only committed and pushed that change to the remote, and I'll save the version change for a later date.
@hl Ah, what's the desktop OS? I use Linux (Mint) so I just set the update manager to ignore updates to Hugo, after installing the same version as Render. I don't know if that's always an option with other OS.
@michaeljoseph I use FreeBSD, I could probably pin the package version - or just download the relevant version from GitHub as well as it's just a single binary anyway, but it's a faff.