Skip to content

Commit 148401a

Browse files
dimsonsi
authored andcommitted
Container-aware GOMAXPROCS is available in golang 1.25
1 parent 6438ff2 commit 148401a

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

ginkgo/main.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ package main
33
import (
44
"fmt"
55
"os"
6-
_ "go.uber.org/automaxprocs"
76
"github.com/onsi/ginkgo/v2/ginkgo/build"
87
"github.com/onsi/ginkgo/v2/ginkgo/command"
98
"github.com/onsi/ginkgo/v2/ginkgo/generators"

ginkgo/maxprocs.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
//go:build go1.23 || go1.24
2+
// +build go1.23 go1.24
3+
4+
package main
5+
6+
import (
7+
_ "go.uber.org/automaxprocs"
8+
)

0 commit comments

Comments
 (0)