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: upgrade to 1.24 #746

Merged
merged 7 commits into from
Feb 19, 2025
Merged

go: upgrade to 1.24 #746

merged 7 commits into from
Feb 19, 2025

Conversation

adambabik
Copy link
Collaborator

Closes #744

@adambabik adambabik marked this pull request as ready for review February 18, 2025 23:31
@@ -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 ./...
Copy link
Collaborator Author

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)))
Copy link
Collaborator Author

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.
Copy link
Collaborator Author

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.

Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
5 Security Hotspots

See analysis details on SonarQube Cloud

Copy link
Member

@sourishkrout sourishkrout left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ LGTM

@sourishkrout sourishkrout merged commit b32087d into main Feb 19, 2025
7 of 8 checks passed
@sourishkrout sourishkrout deleted the adamb/go-124 branch February 19, 2025 21:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Switch to Go 1.24
2 participants