-
-
Notifications
You must be signed in to change notification settings - Fork 5.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
Fix panic: template: repo/issue/list:210: unexpected "=" in operand #6041
Conversation
Codecov Report
@@ Coverage Diff @@
## master #6041 +/- ##
==========================================
- Coverage 38.86% 38.86% -0.01%
==========================================
Files 345 345
Lines 49491 49503 +12
==========================================
+ Hits 19237 19241 +4
- Misses 27473 27480 +7
- Partials 2781 2782 +1
Continue to review full report at Codecov.
|
Thanks for PR @gzsombor, which version of Golang are you using? |
I'm using 1.10.4 |
This is pretty weird I must say since it is already defined at the top gitea/templates/repo/issue/list.tmpl Line 184 in 48a9025
|
Updating variables was added in GoLang v1.11: https://golang.org/doc/go1.11#text/template So we should either rewrite this part of code or raise GoLang version requirements EDIT: I would prefer moving such logic out of template |
Proposed change will fix template rendering but won't fix problem as assigning new variables inside |
My bad |
We still needs support go1.10 on until Gitea v1.9 I think. |
I can submit a proper fix in evening, I just wanted to quickly re-enable my nightly built server, at first, I though it's just a typo |
25987a2
to
c1290ee
Compare
It seems, that a recent change introduced invalid template content, which resulted in a startup failure: