colinwilson / lotusdocs

📖 A free, lightweight, modern documentation theme for Hugo [WIP]

Home Page:https://lotusdocs.dev/docs/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

invalid go version '1.21.5': must match format 1.23

lukaszervudakis opened this issue · comments

Past Issues Searched

  • I have searched open and closed issues to make sure that the bug has not yet been reported

Issue is a Bug Report

  • This is a bug report and not a feature request, nor asking for support

Describe the bug

Following the documentation for deployment with github pages, I get the following error:

Wed, 03 Jan 2024 17:23:15 GMT
Run hugo
Wed, 03 Jan 2024 17:23:15 GMT
Wed, 03 Jan 2024 17:23:15 GMT go: errors parsing go.mod:
Wed, 03 Jan 2024 17:23:15 GMT /home/runner/work/kosmeda/kosmeda/go.mod:3: invalid go version '1.21.5': must match format 1.23
Wed, 03 Jan 2024 17:23:15 GMT Total in 472 ms
Wed, 03 Jan 2024 17:23:15 GMT Error: failed to load modules: failed to download modules: failed to execute 'go [mod download -modcacherw]': failed to execute binary "go" with args [mod download -modcacherw]: go: errors parsing go.mod:
Wed, 03 Jan 2024 17:23:15 GMT /home/runner/work/kosmeda/kosmeda/go.mod:3: invalid go version '1.21.5': must match format 1.23
Wed, 03 Jan 2024 17:23:15 GMT *errors.errorString
Wed, 03 Jan 2024 17:23:15 GMT Error: Process completed with exit code 1.

I was able to resolve it by changing the version to 1.23 inside the go.mod file.

Furthermore, there are some identation errors in the hugo.yaml in the documentation. I just used the one provided by hugo.

Expected behavior

Successful deployment to github pages.

Screenshots

No response

Environment

- OS:
- Browser:
- Browser Version:

you have to change the version to 1.23 in go.mod after the build and then commit and push, for now its working for me :)