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

go version should be at least 1.16 because of io.Discard(Since Go 1.16, Feb 2021)… #16764

Merged
merged 3 commits into from
Aug 21, 2021

Conversation

wxiaoguang
Copy link
Contributor

Currently the go version is 1.14 in go.mod, actually there are many usage of io.Discard(Since Go 1.16, Feb 2021) in code

image

So go version should be at least 1.16 now. And README.md is also updated.

…, so go version should be at least 1.16 now.
@codecov-commenter
Copy link

codecov-commenter commented Aug 21, 2021

Codecov Report

Merging #16764 (9d6f888) into main (7844bf1) will increase coverage by 0.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##             main   #16764      +/-   ##
==========================================
+ Coverage   45.34%   45.36%   +0.01%     
==========================================
  Files         760      760              
  Lines       85504    85504              
==========================================
+ Hits        38774    38785      +11     
+ Misses      40439    40432       -7     
+ Partials     6291     6287       -4     
Impacted Files Coverage Δ
modules/util/timer.go 42.85% <0.00%> (-42.86%) ⬇️
modules/queue/workerpool.go 53.05% <0.00%> (-1.91%) ⬇️
models/issue_comment.go 51.76% <0.00%> (+0.29%) ⬆️
services/pull/pull.go 41.78% <0.00%> (+0.40%) ⬆️
models/repo_list.go 78.43% <0.00%> (+0.78%) ⬆️
models/notification.go 66.00% <0.00%> (+0.87%) ⬆️
modules/notification/ui/ui.go 62.31% <0.00%> (+1.44%) ⬆️
modules/log/event.go 62.50% <0.00%> (+1.85%) ⬆️
modules/notification/mail/mail.go 38.23% <0.00%> (+2.94%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7844bf1...9d6f888. Read the comment docs.

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Aug 21, 2021
@6543
Copy link
Member

6543 commented Aug 21, 2021

@wxiaoguang Discard do work with 1.14 any points in bumping requirement?

@GiteaBot GiteaBot added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Aug 21, 2021
@techknowlogick
Copy link
Member

@6543 we've already defined 1.16 as minimum, so it is good to have it in the places defined in this PR

@6543
Copy link
Member

6543 commented Aug 21, 2021

oh yes that one dep.

@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Aug 21, 2021
@6543 6543 added type/docs This PR mainly updates/creates documentation skip-changelog This PR is irrelevant for the (next) changelog, for example bug fixes for unreleased features. labels Aug 21, 2021
@zeripath zeripath merged commit 2d1935a into go-gitea:main Aug 21, 2021
@wxiaoguang wxiaoguang deleted the fix-go-version branch August 22, 2021 05:12
@kpfleming
Copy link

The release notes for Gitea 1.15.0 say that Go 1.15 or later is required, but this PR made the requirement 1.16 or later.

@zeripath
Copy link
Contributor

zeripath commented Aug 24, 2021

DAMN we should have updated the blog at that point.

Realistically we can't support 1.15 as upstream projects like golang-jwt/jwt will not support out-of-support golang versions - and will not even attempt to provide security fixes for them.

I agree its not great but as 1.15 was released after the end of life for go 1.15 I don't think we can say we can support 1.15.

(If you really need to use go 1.15 the source for Gitea code will compile with go 1.15 if you change the Makefile.)

@zeripath
Copy link
Contributor

I've put up a PR to update/fix the blog https://gitea.com/gitea/blog/pulls/171

@kpfleming
Copy link

I'm good, I upgraded to Go 1.17 and Gitea 1.15 is working great (and quite a bit faster than 1.14 was when built with Go 1.15).

@zeripath
Copy link
Contributor

quite a bit faster than 1.14

This is no accident, I (and lunny) have sent substantial numbers of PRs to improve speed. The one most likely responsible for your experience improvement is #16059.

@go-gitea go-gitea locked and limited conversation to collaborators Oct 19, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. skip-changelog This PR is irrelevant for the (next) changelog, for example bug fixes for unreleased features. type/docs This PR mainly updates/creates documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants