-
-
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
Use Golang 1.18 for Gitea 1.17 release #19918
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed with using 1.18 - Disagree with adding generics directly to gitea1.17.
We need to get 1.17 ready for release - adding generics refactors is going to delay that.
Get RC1 out then we can think about adding in Generics. (But please be aware of the caveats with their current implementation in the golang runtime - They are not free and may come with serious costs where interface{} is used.)
@zeripath What about releasing 1.17 as soon as possible and then backporting refactoring PRs once they appear? |
Generally we should avoid backporting refactoring PRs as they often come with bugs and or change of behaviour. However, I think if there were something that would need backporting that included generics then having 1.17 run go1.18 would allow us to consider backporting those generics to avoid having to completely restructure that backport if necessary. I expect most of the time though, that making a non-generic backport would be easy so we shouldn't need to backport generics. If it were getting too difficult to backport things we should just consider releasing 1.18 quickly as really our releases are too long and too big and we're making our lives difficult because of this. |
Strongly agree, but that's a completely different topic that we should tackle soon. |
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
shouldn't go mod tidy also changed without compat 1.17 flag than? |
Do you mean these code?
It's already automated to parse |
I hope all package maintainer do have enough time to prepare for that ... |
Recently I wrote another |
* giteaoffical/main: Fix data-race problems in git module (quick patch) (go-gitea#19934) [skip ci] Updated translations via Crowdin Fix copy/paste of empty lines (go-gitea#19798) Normalize line endings in fomantic build files (go-gitea#19932) Make user profile image show full image on mobile (go-gitea#19840) Custom regexp external issues (go-gitea#17624) Use Golang 1.18 for Gitea 1.17 release (go-gitea#19918) Refactor git module, make Gitea use internal git config (go-gitea#19732) [skip ci] Updated translations via Crowdin
Use Golang 1.18 (as minimal requirement) for Gitea 1.17 release, make sure the Golang version is still actively supported during Gitea 1.17 lifecycle. Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: 6543 <6543@obermui.de>
We should make sure we're using the same version across the codebase. * We upgraded in #19918 but forgot about the following line https://github.com/go-gitea/gitea/blob/6bb6a108e0c03b323402b452fc05c6845f7d00df/build/code-batch-process.go#L273 Signed-off-by: Yarden Shoham <hrsi88@gmail.com> Co-authored-by: 6543 <6543@obermui.de>
Use Golang 1.18 (as minimal requirement) for Gitea 1.17 release, make sure the Golang version is still actively supported during Gitea 1.17 lifecycle.
And Gitea can start using Golang generics from then on.update: As discussed in #19917 (comment) , only use it when it's carefully designed.
(sorry for that I opened a similar issue and opened this PR, I was going to ask to delete the issue, but soon it contains more important information 😂)