-
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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
Make Hugo work with Go 1.11 (and Go 1.10) #4784
Comments
Go's master branch is not supported. We will eventually fix this. |
Thanks to @rjoleary for the investigation. Fixes gohugoio#4784
@rjoleary, Thank you for your report! PR #4849 (pending review) fixes the compilation issue with the upcoming go1.11. However, a somewhat unrelated test failed, which @ bep quickly recognize as another behaviour change in go1.11 ( |
Regarding the escaped
Full diff of the proposed fix: https://go.googlesource.com/go/+/46c521a7ee4d04971a828d0c0f9d698e1641344d%5E%21/ |
Go developers have undone the breaking API changes in the following commit: commit bedfa4e1c37bd08063865da628f242d27ca06ec4 Author: Daniel Theophanes <[email protected]> Date: Thu Jun 21 10:41:26 2018 -0700 text/template/parse: undo breaking API changes golang.org/cl/84480 altered the API for the parse package for clarity and consistency. However, the changes also broke the API for consumers of the package. This CL reverts the API to the previous spelling, adding only a single new exported symbol. Fixes #25968 Change-Id: Ieb81054b61eeac7df3bc3864ef446df43c26b80f Reviewed-on: https://go-review.googlesource.com/120355 Reviewed-by: Daniel Martí <[email protected]> Reviewed-by: Rob Pike <[email protected]> Run-TryBot: Daniel Martí <[email protected]> TryBot-Result: Gobot Gobot <[email protected]> See golang/go#25968 This reverts commit 9f27091. Closes #4784 Fixes #4873
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. |
I'm on the Go master branch, Ubuntu 16.04, Linux 4.4.0-127-generic:
The following (gotten from getting started) runs as expected:
However, running install fails:
It appears hugo depends on "text/template/parse" which got an API change on Dec 17 which was merged to master in April:
Renaming
Decl
toVars
andVariableNode
toAssignNode
in "template_ast_transformers.go" allowed Hugo to install:It seems out of the ordinary for Go to have a breaking change. It would be nice to be able to install hugo with Go master.
The text was updated successfully, but these errors were encountered: