Can't get modules from bep/hugo-starter/... anymore

Hello,

Suddenly it seems that my gohugo modules can’t be used anymore.
My other modules seems ok when I get them thru hugo mod get -u.
I changed nothing recently.
Done all the “hugo mod x” dance without anything different.
Any idea ?

$ hugo mod get -u
go get: loading module retractions for github.com/gohugoio/hugo-mod-jslibs/instantpage@v0.5.0: missing github.com/gohugoio/hugo-mod-jslibs/instantpage/go.mod at revision instantpage/v0.5.1
go get: loading module retractions for github.com/bep/hugo-starter-tailwind-basic/v2@v2.0.0: missing github.com/bep/hugo-starter-tailwind-basic/go.mod and .../v2/go.mod at revision v2.0.1
module]
    [[module.imports]]
        path = "github.com/divinerites/plausible-hugo"
    #[[module.imports]]
    #    path = "github.com/divinerites/divinerites-cookies"
    [[module.imports]]
        path = "github.com/divinerites/divinerites-lazyload"
    [[module.imports]]
        path = "github.com/divinerites/divinerites-maps"
    [[module.imports]]
        path = "github.com/divinerites/divinerites-images-asset"
    [[module.imports]]
        path = "github.com/gohugoio/hugo-mod-jslibs/instantpage"
    [[module.imports]]
        path = "github.com/bep/hugo-starter-tailwind-basic/v2"
        # hugo mod npm pack + npm install

I’ve now manage to have the module downloaded.
But still impossible to run hugo

$ hugo mod clean --all
$ hugo mod get -u
go: downloading github.com/divinerites/plausible-hugo v1.9.1
go: downloading github.com/divinerites/divinerites-lazyload v1.3.2
go: downloading github.com/divinerites/divinerites-maps v1.1.3
go: downloading github.com/divinerites/divinerites-images-asset v1.2.0
go: downloading github.com/gohugoio/hugo-mod-jslibs/instantpage v0.5.1
go: downloading github.com/gohugoio/hugo-mod-jslibs v0.0.0-20210415175051-4da8870bdd6a
go: downloading github.com/bep/hugo-starter-tailwind-basic/v2 v2.0.1
go: downloading github.com/bep/hugo-starter-tailwind-basic v1.0.0
$ hugo
Error: module "github.com/bep/hugo-starter-tailwind-basic/v2" not found; either add it as a Hugo Module or store it in "/Users/didiergeorgieff/Documents/Git/camping-navigator.com/themes".: module does not exist

Seems to work now. Changed nothing. Strange. Anyway sorry for the noise.

No problem, a little bit strange … I’ve been a heavy Hugo Modules user lately myself, and it has been mostly smooth sailing: My guess looking at the above is that there’s been an intermittent issue with GitHub being down or something…

Yes think about that too. But my own private modules are on github too. Anyway.
Will keep an eye open if it comes again.

But anyhow, modules are sooo powerful for organising things in a clean way.
Thanks for your work about that.

A related tip is to use hugo mod vendor; if you do that in the main project, you don’t need Go (or a network connection) to build – we use it in the Hugo Docs repo as it allows the Hugo source distribution to contain the complete, versioned site. The “no network connection” should be true in most other situations as well (as you would have the modules cached).

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