-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Only use async pre-empt hack if go < 1.15 #12718
Only use async pre-empt hack if go < 1.15 #12718
Conversation
Signed-off-by: Andrew Thornton <art27@cantab.net>
@@ -130,7 +132,9 @@ func (c *Command) RunInDirTimeoutEnvFullPipelineFunc(env []string, timeout time. | |||
} | |||
|
|||
// TODO: verify if this is still needed in golang 1.15 |
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.
// TODO: verify if this is still needed in golang 1.15 |
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.
perhaps we should actually verify it first... 😛
"strings" | ||
"time" | ||
|
||
"code.gitea.io/gitea/modules/process" | ||
"github.com/mcuadros/go-version" |
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.
github.com/mcuadros/go-version was archived !!!
we should switch to github.com/hashicorp/go-version
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.
I'll try to create a pr - it shold be a drop in replacement ...
Codecov Report
@@ Coverage Diff @@
## master #12718 +/- ##
==========================================
+ Coverage 43.29% 43.31% +0.02%
==========================================
Files 646 646
Lines 71592 71625 +33
==========================================
+ Hits 30993 31022 +29
+ Misses 35583 35581 -2
- Partials 5016 5022 +6
Continue to review full report at Codecov.
|
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.
I wont block things because #12719 change more code as i thought and is WIP at the moment
Go 1.15 should have fixed the problems requiring setting GODEBUG=asyncpreempt=off. Therefore if we are running 1.15 we don't need to set this.
Signed-off-by: Andrew Thornton art27@cantab.net