LondonGophers / gophers.london

https://gophers.london
0 stars 0 forks source link

Mismatch in Hugo and Blowfish Versions Causes Warning #44

Open ttw225 opened 1 year ago

ttw225 commented 1 year ago

Hey, I noticed you grumbling about this issue at the bottom of your README. You're not alone, and I might have a fix for you.

Problem Description

The issue originates from a version mismatch between Hugo and the Blowfish theme, as specified in themes/blowfish/config.toml.

The config.toml file in the Blowfish project found at this link indicates compatibility with Hugo versions ranging from 0.87.0 to 0.110.0.

Run the following command to check your local Hugo version:

hugo version

If the Hugo version does not match the one specified in Blowfish, a warning will appear when running Hugo.

Solution

Update Blowfish Version: You can update the Blowfish submodule to a compatible version by following the official installation guide. Use the following command to update:

git submodule update --remote --merge

Note: As of now, the latest Hugo version is 0.118.2, and the latest Blowfish version supports up to 0.117.0. So, the warning might still appear. You may have to wait for an update from Blowfish.

Alternative: If you simply wish to avoid the warning, you could manually alter the themes/blowfish/config.toml file in your project. However, this is not highly recommended.

Conclusion

The limited information provided by hugo mod graph can make this issue challenging to diagnose. I too found it frustrating but hope that this solution will aid you.

Additionally, I've taken a look at several well-known Hugo theme projects, and I've noticed that most of them only specify the minimum Hugo version required.

jaminologist commented 1 year ago

Oh cool, thank you! Sorry for the late reply, I didn't see anyone had posted. I'll give it a shot once I have a bit a time, but thank you for taking a look a this 👍

sid-sg commented 1 month ago

I had the same problem. I solved it by removing, and building it from source by: CGO_ENABLED=1 go install -tags extended github.com/gohugoio/hugo@latest