-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
bug: no matching versions for query "upgrade" when trying to install/use theme #791
Comments
I'm seeing this error too on MacOS. |
Ananke v1 had no module setup. v2 has since v2.11.1. You need to use
See https://github.com/theNewDynamic/gohugo-theme-ananke/releases/tag/v2.11.1 for some details. The docs need updating. Other than that, this is a limitation in the way Go does versioning. v0 and v1 require only the path, from v2 on the path needs a version string with the major version at the end. You could also use a commit hash like this: |
@davidsneighbour go works in mysterious ways sometimes but how would that explain that I do get the exact same error when trying v2 as described in the release descriptions
edit: same with commit hash
|
Oh... the theme setting in hugo.toml must be changed as well. |
yes. I also think that |
When following the instructions for how to install this theme using the module method I get an error about not being able to get the module.
Note: I cannot run
hugo config --format toml
to get the config because this generates the same error so I just pasted the config instead.Expected Behavior
Current Behavior
Just for good measure I tried
hugo mod get
as well.Possible Solution
Steps to Reproduce
hugo new site quickstart
cd quickstart
go mod init quickstart
echo 'theme = ["github.com/theNewDynamic/gohugo-theme-ananke"]' >> hugo.toml
hugo server -D
The bigger picture (we need context)
Running this on a Raspberry Pi 5 with latest RaspiOS updated todady (debian 12.
Hugo Config
baseURL = 'https://example.org/'
languageCode = 'en-us'
title = 'My New Hugo Site'
theme = ["github.com/theNewDynamic/gohugo-theme-ananke"]
The text was updated successfully, but these errors were encountered: