Skip to content

bug: no matching versions for query "upgrade" when trying to install/use theme #791

@kmpm

Description

@kmpm

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

hugo server -D

...

Environment: "development"
Serving pages from disk
Running in Fast Render Mode. For full rebuilds on change: hugo server --disableFastRender
Web Server is available at http://localhost:1313/ (bind address 127.0.0.1) 
Press Ctrl+C to stop

Current Behavior

hugo server -D
go: no module dependencies to download
go: github.com/theNewDynamic/gohugo-theme-ananke@upgrade: no matching versions for query "upgrade"
hugo: collected modules in 848 ms
Hugo provides its own webserver which builds and serves the site.

...

Error: command error: failed to load modules: failed to get ["github.com/theNewDynamic/gohugo-theme-ananke@upgrade"]: failed to execute 'go [get github.com/theNewDynamic/gohugo-theme-ananke@upgrade]': failed to execute binary "go" with args [get github.com/theNewDynamic/gohugo-theme-ananke@upgrade]: go: github.com/theNewDynamic/gohugo-theme-ananke@upgrade: no matching versions for query "upgrade"
 *errors.errorString

Just for good measure I tried hugo mod get as well.

$ hugo mod get -u github.com/theNewDynamic/gohugo-theme-ananke
go: no module dependencies to download
go: github.com/theNewDynamic/gohugo-theme-ananke@upgrade: no matching versions for query "upgrade"
hugo: collected modules in 902 ms
Error: failed to load modules: failed to get ["github.com/theNewDynamic/gohugo-theme-ananke@upgrade"]: failed to execute 'go [get github.com/theNewDynamic/gohugo-theme-ananke@upgrade]': failed to execute binary "go" with args [get github.com/theNewDynamic/gohugo-theme-ananke@upgrade]: go: github.com/theNewDynamic/gohugo-theme-ananke@upgrade: no matching versions for query "upgrade"
 *errors.errorString

Possible Solution

Steps to Reproduce

  1. hugo new site quickstart
  2. cd quickstart
  3. go mod init quickstart
  4. echo 'theme = ["github.com/theNewDynamic/gohugo-theme-ananke"]' >> hugo.toml
  5. hugo server -D

The bigger picture (we need context)

Running this on a Raspberry Pi 5 with latest RaspiOS updated todady (debian 12.

$ hugo version
hugo v0.138.0+extended linux/arm64 BuildDate=unknown

$ go version
go version go1.22.8 linux/arm64

$ hugo mod graph
# returns nothing

$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 12 (bookworm)
Release:        12
Codename:       bookworm

$ uname -a
Linux kmpm-pi-a3c244 6.6.58-v8-16k+ #1809 SMP PREEMPT Wed Oct 23 11:55:28 BST 2024 aarch64 GNU/Linux

$ hugo config --format toml
go: no module dependencies to download
go: github.com/theNewDynamic/gohugo-theme-ananke@upgrade: no matching versions for query "upgrade"
hugo: collected modules in 863 ms
Error: failed to load modules: failed to get ["github.com/theNewDynamic/gohugo-theme-ananke@upgrade"]: failed to execute 'go [get github.com/theNewDynamic/gohugo-theme-ananke@upgrade]': failed to execute binary "go" with args [get github.com/theNewDynamic/gohugo-theme-ananke@upgrade]: go: github.com/theNewDynamic/gohugo-theme-ananke@upgrade: no matching versions for query "upgrade"
 *errors.errorString
Hugo Config

baseURL = 'https://example.org/'
languageCode = 'en-us'
title = 'My New Hugo Site'
theme = ["github.com/theNewDynamic/gohugo-theme-ananke"]

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions