mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-05-25 13:17:45 +08:00
build: avoid warn on empty config value
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
This commit is contained in:
parent
0269388aa7
commit
1621b9bad0
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user