Skip to content

Commit

Permalink
Merge pull request #390 from tonistiigi/fix-warn
Browse files Browse the repository at this point in the history
build: avoid warn on empty config value
  • Loading branch information
tonistiigi committed Nov 3, 2020
2 parents 13533e3 + 1621b9b commit 778fbb4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion build/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -851,7 +851,10 @@ func newDockerLoader(ctx context.Context, d DockerAPI, name string, mw *progress
}

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)
if err != nil {
logrus.Warnf("invalid non-bool value for BUILDX_NO_DEFAULT_LOAD: %s", v)
Expand Down

0 comments on commit 778fbb4

Please sign in to comment.