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


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 missing at revision instantpage/v0.5.1
go get: loading module retractions for missing and .../v2/go.mod at revision v2.0.1
        path = ""
    #    path = ""
        path = ""
        path = ""
        path = ""
        path = ""
        path = ""
        # 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 v1.9.1
go: downloading v1.3.2
go: downloading v1.1.3
go: downloading v1.2.0
go: downloading v0.5.1
go: downloading v0.0.0-20210415175051-4da8870bdd6a
go: downloading v2.0.1
go: downloading v1.0.0
$ hugo
Error: module "" not found; either add it as a Hugo Module or store it in "/Users/didiergeorgieff/Documents/Git/".: 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.