Files
podman/vendor/github.com/containers/buildah/pkg/util/resource_windows.go
Paul Holzinger 2c2299ad85 bump buildah to latest
Also includes a small change to make us of
https://github.com/containers/buildah/pull/5039

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2023-09-14 11:20:48 +02:00

17 lines
305 B
Go

package util
import (
"fmt"
"github.com/docker/go-units"
)
func ParseUlimit(ulimit string) (*units.Ulimit, error) {
ul, err := units.ParseUlimit(ulimit)
if err != nil {
return nil, fmt.Errorf("ulimit option %q requires name=SOFT:HARD, failed to be parsed: %w", ulimit, err)
}
return ul, nil
}