Skip to content

Commit

Permalink
build: avoid warn on empty config value
Browse files Browse the repository at this point in the history
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
  • Loading branch information
tonistiigi committed Sep 14, 2020
1 parent 0269388 commit 2942bad
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions build/build.go
Expand Up @@ -852,6 +852,9 @@ func newDockerLoader(ctx context.Context, d DockerAPI, name string, mw *progress

func noDefaultLoad() bool {
v := os.Getenv("BUILDX_NO_DEFAULT_LOAD")
if v == "" {
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 2942bad

Please sign in to comment.