HugoBlox / hugo-blox-builder

🚨 GROW YOUR AUDIENCE WITH HUGOBLOX! 🚀 HugoBlox is an easy, fast no-code website builder for researchers, entrepreneurs, data scientists, and developers. Build stunning sites in minutes. 适合研究人员、企业家、数据科学家和开发者的简单快速无代码网站构建器。用拖放功能、可定制模板和内置SEO工具快速创建精美网站!
https://hugoblox.com/templates/
MIT License
8.36k stars 2.9k forks source link

invalid module versions #3036

Closed mahmoods01 closed 10 months ago

mahmoods01 commented 10 months ago

Preliminary Checks

Description

After cloning the theme research group and running the hugo server, Hugo is unable to download the required modules (the detailed error is posted below).

Reproduction Link

https://github.com/HugoBlox/theme-research-group

Steps to Reproduce

  1. Clone the research group theme (https://github.com/HugoBlox/theme-research-group)
  2. Run cd theme-research-group
  3. Run hugo server

Expected Result

The server would run.

Actual Result

The following error:

hugo: downloading modules …
go mod download: github.com/HugoBlox/hugo-blox-builder/modules/blox-bootstrap/v5@v5.9.7-0.20231108143325-448ed0e3bd2b: invalid version: git fetch -f origin refs/heads/*:refs/heads/* refs/tags/*:refs/tags/* in /var/folders/d9/0t3sqp7d6g177jdqn639k_6r0000gn/T/hugo_cache/modules/filecache/modules/pkg/mod/cache/vcs/bf777e9c93e1a481b3d333886ea1bcc13630093f487c405b49f67fc14a20211b: exit status 128:
        error: 2891 bytes of body are still expected
        fetch-pack: unexpected disconnect while reading sideband packet
        fatal: early EOF
        fatal: fetch-pack: invalid index-pack output
go mod download: github.com/HugoBlox/hugo-blox-builder/modules/blox-plugin-decap-cms@v0.1.2-0.20231108143325-448ed0e3bd2b: invalid version: git fetch -f origin refs/heads/*:refs/heads/* refs/tags/*:refs/tags/* in /var/folders/d9/0t3sqp7d6g177jdqn639k_6r0000gn/T/hugo_cache/modules/filecache/modules/pkg/mod/cache/vcs/bf777e9c93e1a481b3d333886ea1bcc13630093f487c405b49f67fc14a20211b: exit status 128:
        error: 2891 bytes of body are still expected
        fetch-pack: unexpected disconnect while reading sideband packet
        fatal: early EOF
        fatal: fetch-pack: invalid index-pack output
go mod download: github.com/HugoBlox/hugo-blox-builder/modules/blox-plugin-netlify@v1.1.2-0.20231108143325-448ed0e3bd2b: invalid version: git fetch -f origin refs/heads/*:refs/heads/* refs/tags/*:refs/tags/* in /var/folders/d9/0t3sqp7d6g177jdqn639k_6r0000gn/T/hugo_cache/modules/filecache/modules/pkg/mod/cache/vcs/bf777e9c93e1a481b3d333886ea1bcc13630093f487c405b49f67fc14a20211b: exit status 128:
        error: 2891 bytes of body are still expected
        fetch-pack: unexpected disconnect while reading sideband packet
        fatal: early EOF
        fatal: fetch-pack: invalid index-pack output
hugo: collected modules in 155048 ms
Error: failed to download modules: failed to execute 'go [mod download]': failed to execute binary "go" with args [mod download]: go mod download: github.com/HugoBlox/hugo-blox-builder/modules/blox-bootstrap/v5@v5.9.7-0.20231108143325-448ed0e3bd2b: invalid version: git fetch -f origin refs/heads/*:refs/heads/* refs/tags/*:refs/tags/* in /var/folders/d9/0t3sqp7d6g177jdqn639k_6r0000gn/T/hugo_cache/modules/filecache/modules/pkg/mod/cache/vcs/bf777e9c93e1a481b3d333886ea1bcc13630093f487c405b49f67fc14a20211b: exit status 128:
        error: 2891 bytes of body are still expected
        fetch-pack: unexpected disconnect while reading sideband packet
        fatal: early EOF
        fatal: fetch-pack: invalid index-pack output
go mod download: github.com/HugoBlox/hugo-blox-builder/modules/blox-plugin-decap-cms@v0.1.2-0.20231108143325-448ed0e3bd2b: invalid version: git fetch -f origin refs/heads/*:refs/heads/* refs/tags/*:refs/tags/* in /var/folders/d9/0t3sqp7d6g177jdqn639k_6r0000gn/T/hugo_cache/modules/filecache/modules/pkg/mod/cache/vcs/bf777e9c93e1a481b3d333886ea1bcc13630093f487c405b49f67fc14a20211b: exit status 128:
        error: 2891 bytes of body are still expected
        fetch-pack: unexpected disconnect while reading sideband packet
        fatal: early EOF
        fatal: fetch-pack: invalid index-pack output
go mod download: github.com/HugoBlox/hugo-blox-builder/modules/blox-plugin-netlify@v1.1.2-0.20231108143325-448ed0e3bd2b: invalid version: git fetch -f origin refs/heads/*:refs/heads/* refs/tags/*:refs/tags/* in /var/folders/d9/0t3sqp7d6g177jdqn639k_6r0000gn/T/hugo_cache/modules/filecache/modules/pkg/mod/cache/vcs/bf777e9c93e1a481b3d333886ea1bcc13630093f487c405b49f67fc14a20211b: exit status 128:
        error: 2891 bytes of body are still expected
        fetch-pack: unexpected disconnect while reading sideband packet
        fatal: early EOF
        fatal: fetch-pack: invalid index-pack output
 *errors.errorString

What Hugo Module versions does your site use?

Here's the (unmodified) content of the go.mod file:

module github.com/wowchemy/starter-hugo-research-group

go 1.15

require (
        github.com/HugoBlox/hugo-blox-builder/modules/blox-bootstrap/v5 v5.9.7-0.20231108143325-448ed0e3bd2b
        github.com/HugoBlox/hugo-blox-builder/modules/blox-plugin-decap-cms v0.1.2-0.20231108143325-448ed0e3bd2b
        github.com/HugoBlox/hugo-blox-builder/modules/blox-plugin-netlify v1.1.2-0.20231108143325-448ed0e3bd2b
)

What operating system(s) are you seeing the problem on?

macOS

What browser(s) are you seeing the problem on?

No response

Which Hugo Blox template are you using?

Research Group

What version of Hugo are you using?

hugo v0.121.1-00b46fed8e47f7bb0a85d7cfc2d9f1356379b740+extended darwin/arm64 BuildDate=2023-12-08T08:47:45Z VendorInfo=brew

mahmoods01 commented 10 months ago

I solved the issue (by running hugo server -gc)