gohugoio / hugo

The world’s fastest framework for building websites.
https://gohugo.io
Apache License 2.0
75.47k stars 7.5k forks source link

Hugo v0.87.0 no longer support Hugo modules/themes #8883

Closed Bear-kai closed 3 years ago

Bear-kai commented 3 years ago

I failed to use hugo v0.87.0 to run hugo themes in win10, but hugo v0.84.1 worked.

PS C:\Users\Lenovo> hugo version
hugo v0.87.0-B0C541E4+extended windows/amd64 BuildDate=2021-08-03T10:57:28Z VendorInfo=gohugoio
PS C:\Users\Lenovo> go version
go version go1.16.7 windows/amd64

PS D:\1_Files\hugo-academic-website-dev> hugo server
hugo: downloading modules …
go: github.com/wowchemy/wowchemy-hugo-modules/v5@v5.3.0: reading github.com/wowchemy/wowchemy-hugo-modules/go.mod at revision v5.3.0: unknown revision v5.3.0
hugo: collected modules in 43316 ms
Error: failed to download modules: go command failed: go: github.com/wowchemy/wowchemy-hugo-modules/v5@v5.3.0: reading github.com/wowchemy/wowchemy-hugo-modules/go.mod at revision v5.3.0: unknown revision v5.3.0

related link in wowchemy-hugo-modules.

bep commented 3 years ago

Your issue title i obviously not correct as general statement. I and many with me use Hugo Modules every day.

davidsneighbour commented 3 years ago

Ignoring the issue title and reading your issue I would say you might have a cache issue or an issue with defining the version of your module. Try running some of these commands:

hugo mod tidy
hugo mod get -u ./...

and see what happens. You could also delete a folder possibly called /tmp/hugo-cache or something along these lines depending on your operating system.

If nothing else helps follow the advise on your linked wowchemy issue and downgrade hugo to the version that did work at the time the current version of the theme worked.

Bear-kai commented 3 years ago

@bep Sorry for the wrong statement, I'm new with hugo and my description mainly follows the attached link. And thanks for your suggestion! @davidsneighbour

bep commented 3 years ago

@Bear-kai my suggestion would be to try:

hugo mod clean

And then run hugo.

jmooring commented 3 years ago

Reference: https://github.com/wowchemy/wowchemy-hugo-themes/discussions/2413

github-actions[bot] commented 2 years ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.