cli/compose: use stdlib errors

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn
2025-08-11 15:03:39 +02:00
parent 2dd462cc36
commit d38317c781
7 changed files with 63 additions and 64 deletions

View File

@ -4,11 +4,11 @@
package loader
import (
"fmt"
"strconv"
"strings"
interp "github.com/docker/cli/cli/compose/interpolation"
"github.com/pkg/errors"
)
var interpolateTypeCastMapping = map[interp.Path]interp.Cast{
@ -67,7 +67,7 @@ func toBoolean(value string) (any, error) {
case "n", "no", "false", "off":
return false, nil
default:
return nil, errors.Errorf("invalid boolean: %s", value)
return nil, fmt.Errorf("invalid boolean: %s", value)
}
}