mirror of
https://github.com/mudler/luet.git
synced 2025-09-17 07:42:25 +00:00
cmd: Create output build dir if doesn't exist already
This commit is contained in:
@@ -29,6 +29,7 @@ import (
|
|||||||
|
|
||||||
"github.com/mudler/luet/pkg/compiler/types/compression"
|
"github.com/mudler/luet/pkg/compiler/types/compression"
|
||||||
"github.com/mudler/luet/pkg/compiler/types/options"
|
"github.com/mudler/luet/pkg/compiler/types/options"
|
||||||
|
fileHelpers "github.com/mudler/luet/pkg/helpers/file"
|
||||||
pkg "github.com/mudler/luet/pkg/package"
|
pkg "github.com/mudler/luet/pkg/package"
|
||||||
"github.com/mudler/luet/pkg/solver"
|
"github.com/mudler/luet/pkg/solver"
|
||||||
tree "github.com/mudler/luet/pkg/tree"
|
tree "github.com/mudler/luet/pkg/tree"
|
||||||
@@ -144,6 +145,11 @@ Build packages specifying multiple definition trees:
|
|||||||
|
|
||||||
util.DefaultContext.Info("Building in", dst)
|
util.DefaultContext.Info("Building in", dst)
|
||||||
|
|
||||||
|
if !fileHelpers.Exists(dst) {
|
||||||
|
os.MkdirAll(dst, 0600)
|
||||||
|
util.DefaultContext.Debug("Creating destination folder", dst)
|
||||||
|
}
|
||||||
|
|
||||||
opts := util.SetSolverConfig(util.DefaultContext)
|
opts := util.SetSolverConfig(util.DefaultContext)
|
||||||
pullRepo, _ := cmd.Flags().GetStringArray("pull-repository")
|
pullRepo, _ := cmd.Flags().GetStringArray("pull-repository")
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user