Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mismatch in Hugo and Blowfish Versions Causes Warning #44

Open
ttw225 opened this issue Sep 8, 2023 · 2 comments
Open

Mismatch in Hugo and Blowfish Versions Causes Warning #44

ttw225 opened this issue Sep 8, 2023 · 2 comments

Comments

@ttw225
Copy link

ttw225 commented Sep 8, 2023

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
Copy link
Contributor

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
Copy link

sid-sg commented Aug 20, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants