Merge pull request #390 from tonistiigi/fix-warn

build: avoid warn on empty config value
pull/436/head
Tõnis Tiigi 4 years ago committed by GitHub
commit 778fbb4669
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -851,7 +851,10 @@ func newDockerLoader(ctx context.Context, d DockerAPI, name string, mw *progress
} }
func noDefaultLoad() bool { func noDefaultLoad() bool {
v := os.Getenv("BUILDX_NO_DEFAULT_LOAD") v, ok := os.LookupEnv("BUILDX_NO_DEFAULT_LOAD")
if !ok {
return false
}
b, err := strconv.ParseBool(v) b, err := strconv.ParseBool(v)
if err != nil { if err != nil {
logrus.Warnf("invalid non-bool value for BUILDX_NO_DEFAULT_LOAD: %s", v) logrus.Warnf("invalid non-bool value for BUILDX_NO_DEFAULT_LOAD: %s", v)

Loading…
Cancel
Save