ParseBoolOrAuto returns (nil, nil) if s is "auto" https://github.com/moby/buildkit/blob/v0.9.1/cmd/buildkitd/config.go#L35-L42
(s string)
| 139 | // ParseBoolOrAuto returns (nil, nil) if s is "auto" |
| 140 | // https://github.com/moby/buildkit/blob/v0.9.1/cmd/buildkitd/config.go#L35-L42 |
| 141 | func ParseBoolOrAuto(s string) (*bool, error) { |
| 142 | if s == "" || strings.ToLower(s) == "auto" { |
| 143 | return nil, nil |
| 144 | } |
| 145 | b, err := strconv.ParseBool(s) |
| 146 | return &b, err |
| 147 | } |
no outgoing calls
searching dependent graphs…