-
Notifications
You must be signed in to change notification settings - Fork 47
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: upgrade to 1.24 #746
go: upgrade to 1.24 #746
Conversation
@@ -76,10 +76,6 @@ test-docker/run: | |||
-v dev.runme.test-env-gocache:/root/.cache/go-build \ | |||
runme-test-env:latest | |||
|
|||
.PHONY: test/update-snapshots | |||
test/update-snapshots: | |||
@TZ=UTC UPDATE_SNAPSHOTS=true go test ./... |
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.
Deleted, because I could not find any reference to it.
max := 9 - len(strings.Split(relFilename, string(filepath.Separator))) | ||
if len(words) > max { | ||
intro = strings.Join(words[:max], " ") + "..." | ||
maxComponents := 9 - len(strings.Split(relFilename, string(filepath.Separator))) |
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.
Changed a variable name, because gosec
complained that it was overwriting a global symbol. AFAIK from Go 1.23 there are max
and min
functions.
@@ -184,6 +184,10 @@ func (e *execution) Wait(ctx context.Context, sender runnerv2.RunnerService_Exec | |||
e.closeIO() | |||
|
|||
if waitErr != nil { | |||
// Drain the readSendDone channel to avoid goroutine leaks. |
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.
Found when running e2e tests thanks to the logger reporting calls after the test case finished.
|
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.
✅ LGTM
Closes #744