Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

invalid go version '1.21.5': must match format 1.23 #149

Open
2 tasks done
lukaszervudakis opened this issue Jan 3, 2024 · 1 comment
Open
2 tasks done

invalid go version '1.21.5': must match format 1.23 #149

lukaszervudakis opened this issue Jan 3, 2024 · 1 comment

Comments

@lukaszervudakis
Copy link

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:
@victim1307
Copy link

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 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants