But It Works on My Computer
After this, I went on GitLab, and check the changes and saw the two failed pipelines. That was really baffling, since I hadn’t changed any files concerning Hugo.
I tried to build the blog on my computer running
hugo, and it just worked. Now
I was really confused. It was one of those “I don’t know why is broken, it just
works on my computer” moments.
I looked again at the error shown on the logs, and searched around the internet, and nothing helpful appeared.
After some time scratching my head (hopefully short, but I don’t remember). I checked GitLab’s Hugo container, and there was the problem. I was using version 0.70.0 from the repo and GitLab had already updated to v0.71.1. After this, I installed the snap to check, and there it was: a bug on the theme that I was use for my blog.
So, as a workaround, I reverted the GitLab CI to version 0.70.0 and reported the bug to the upstream project. 24 hours later the bug was fixed, I tested the changes and said thank you to the developer 2, and everything could go back to normal.