Fixup spinner data race

Add spinner lock
This commit is contained in:
Ettore Di Giacinto
2021-02-17 09:43:44 +01:00
parent 92e73051a0
commit b3e3abec8f
6 changed files with 20 additions and 23 deletions

View File

@@ -21,7 +21,6 @@ import (
"strings"
"github.com/mudler/luet/pkg/compiler"
"github.com/mudler/luet/pkg/config"
. "github.com/mudler/luet/pkg/logger"
"github.com/pkg/errors"
@@ -48,11 +47,6 @@ func (*SimpleImg) BuildImage(opts compiler.CompilerBackendOptions) error {
Info(":tea: Building image " + name)
if !config.LuetCfg.GetGeneral().ShowBuildOutput {
Spinner(22)
defer SpinnerStop()
}
cmd := exec.Command("img", buildarg...)
cmd.Dir = path
_, err := runCommand(cmd)