We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c6a1835 commit fca346fCopy full SHA for fca346f
executor/resources/cpu.go
@@ -6,6 +6,7 @@ import (
6
"path/filepath"
7
"strconv"
8
"strings"
9
+ "syscall"
10
11
"github.com/moby/buildkit/executor/resources/types"
12
"github.com/pkg/errors"
@@ -81,7 +82,7 @@ func getCgroupCPUStat(cgroupPath string) (*types.CPUStat, error) {
81
82
func parsePressureFile(filename string) (*types.Pressure, error) {
83
content, err := os.ReadFile(filename)
84
if err != nil {
- if errors.Is(err, os.ErrNotExist) { // pressure file requires CONFIG_PSI
85
+ if errors.Is(err, os.ErrNotExist) || errors.Is(err, syscall.ENOTSUP) { // pressure file requires CONFIG_PSI
86
return nil, nil
87
}
88
return nil, err
0 commit comments