[solved] Theme error with "hugo mod -u"

I never had this error. Same code since long time.

Now if I do hugo mod get -u i get an error related to the theme declared in config.toml. Modules from module.toml seems to load well.

Note : I’m not 100% sure but i think it was ok on 0.123.0. But nothing sure.

[EDIT] the gethugothemes.com on all the lines is really strange on $ hugo mod graph command

$ hugo mod get -u
go: malformed module path "grandhotel": missing dot in first path element
Error: failed to get ["-d" "-u" "grandhotel"]: failed to execute 'go [get -d -u grandhotel]': failed to execute binary "go" with args [get -d -u grandhotel]: go: malformed module path "grandhotel": missing dot in first path element
 *errors.errorString

config.toml

baseURL = "https://www.grandhotelkurhaus.com/"
timeout = "60s"
title = "Bienvenue - Grand Hotel & Kurhaus Arolla"
theme = ["grandhotel"]
...

module.toml

[hugoVersion]
extended = true
min = "0.110.0"

[[imports]]
path = "github.com/gohugoio/hugo-mod-bootstrap-scss/v5"

[[imports]]
path = "github.com/gethugothemes/hugo-modules/components/preloader"

[[imports]]
path = "github.com/gethugothemes/hugo-modules/components/render-link"

[[imports]]
path = "github.com/gethugothemes/hugo-modules/images"

[[imports]]
path = "github.com/gethugothemes/hugo-modules/shortcodes/button"

[[imports]]
path = "github.com/gethugothemes/hugo-modules/shortcodes/notice"

[[imports]]
path = "github.com/gethugothemes/hugo-modules/videos"

[[imports]]
path = "github.com/gethugothemes/hugo-modules/tab"

[[imports]]
path = "github.com/gethugothemes/hugo-modules/gallery-slider"

[[imports]]
path = "github.com/gethugothemes/hugo-modules/seo-tools/basic-seo"

[[imports]]
path = "github.com/gethugothemes/hugo-modules/seo-tools/site-verifications"

[[imports]]
path = "github.com/divinerites/plausible-hugo"

[[imports]]
path = "github.com/divinerites/divinerites-maps"

[[imports]]
path = "github.com/FortAwesome/Font-Awesome"
[[imports.mounts]]
source = "scss"
target = "assets/scss/fa-v6"
[[imports.mounts]]
source = "webfonts"
target = "static/webfonts"
$ go version
go version go1.20.4 darwin/amd64
$ hugo mod graph
gethugothemes.com github.com/gohugoio/hugo-mod-bootstrap-scss/v5@v5.20300.20200
github.com/gohugoio/hugo-mod-bootstrap-scss/v5@v5.20300.20200 github.com/twbs/bootstrap@v5.3.3+incompatible
github.com/gohugoio/hugo-mod-bootstrap-scss/v5@v5.20300.20200 github.com/gohugoio/hugo-mod-jslibs-dist/popperjs/v2@v2.21100.20000
gethugothemes.com github.com/gethugothemes/hugo-modules/components/preloader@v0.0.0-20240215103202-c030d4222242
gethugothemes.com github.com/gethugothemes/hugo-modules/components/render-link@v0.0.0-20240215103202-c030d4222242
gethugothemes.com github.com/gethugothemes/hugo-modules/images@v0.0.0-20240215103202-c030d4222242
gethugothemes.com github.com/gethugothemes/hugo-modules/shortcodes/button@v0.0.0-20240215103202-c030d4222242
gethugothemes.com github.com/gethugothemes/hugo-modules/shortcodes/notice@v0.0.0-20240215103202-c030d4222242
gethugothemes.com github.com/gethugothemes/hugo-modules/videos@v0.0.0-20240215103202-c030d4222242
gethugothemes.com github.com/gethugothemes/hugo-modules/tab@v0.0.0-20240215103202-c030d4222242
gethugothemes.com github.com/gethugothemes/hugo-modules/gallery-slider@v0.0.0-20240215103202-c030d4222242
gethugothemes.com github.com/gethugothemes/hugo-modules/seo-tools/basic-seo@v0.0.0-20240215103202-c030d4222242
gethugothemes.com github.com/gethugothemes/hugo-modules/seo-tools/site-verifications@v0.0.0-20240215103202-c030d4222242
gethugothemes.com github.com/divinerites/plausible-hugo@v1.19.4
gethugothemes.com github.com/divinerites/divinerites-maps@v1.1.6
gethugothemes.com github.com/FortAwesome/Font-Awesome@v0.0.0-20230802202706-f0c25837a3fe
gethugothemes.com grandhotel
grandhotel dr-seo-schema-org

The error is thrown with v0.120.0 and later. This is not related to v0.123.x.

This is what changed in v0.120.0:
https://github.com/gohugoio/hugo/pull/11573

cc @razon

1 Like

Sorry about that, I forgot to ignore invalid module path, I rised a PR on GitHub for this.

2 Likes

Solved with latest 0.123.2

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.