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

Module error when running a version of go with MAJOR.MINOR.PATCH #11558

Closed
chrede88 opened this issue Oct 12, 2023 · 3 comments
Closed

Module error when running a version of go with MAJOR.MINOR.PATCH #11558

chrede88 opened this issue Oct 12, 2023 · 3 comments

Comments

@chrede88
Copy link

When running any module commands, Hugo (Go) will add the patch release number to the go.mod file. This will in turn lead to an error as the code can't handle go versions with a patch, e.g. go 1.21.1

What version of Hugo are you using (hugo version)?

$ hugo version
hugo v0.119.0-b84644c008e0dc2c4b67bd69cccf87a41a03937e+extended darwin/arm64 BuildDate=2023-09-24T15:20:17Z VendorInfo=brew
$ go version
go version go1.21.2 darwin/arm64

Does this issue reproduce with the latest release?

Yes.

@bep
Copy link
Member

bep commented Oct 13, 2023

Can you be more specific? What do you do and what error do you get?

I'm running

go version go1.21.3 darwin/arm64

And have not seen any issues re this, and we're also have lots of tests covering this (which runs the latest Go).

@chrede88
Copy link
Author

chrede88 commented Oct 13, 2023

Okay! I don't know what happened yesterday. I can't recreate this issue anymore.
The error I got last night was identical to what people report in this issue: golang/go#61888
Looking through issue reported in the Go repo, there seems to be a lot of related issues with people upgrading to v1.21.x. It seems that this is mostly fixed by upgrading Go.

I'm closing this as it is not a Hugo issue. And the fact that I can't recreate it, also offers zero help.

Copy link

github-actions bot commented Nov 4, 2023

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 4, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants