Fixup config protect

This commit is contained in:
Ettore Di Giacinto
2021-10-24 13:01:51 +02:00
parent 6ff22d923c
commit 52ad2b5cfa
4 changed files with 27 additions and 23 deletions

View File

@@ -812,6 +812,10 @@ func (r *LuetSystemRepository) SyncBuildMetadata(ctx *types.Context, path string
defer os.RemoveAll(a.Path)
if !fileHelper.Exists(filepath.Join(path, "tree")) {
os.MkdirAll(filepath.Join(path, "tree"), 0600)
}
if err := a.Unpack(ctx, filepath.Join(path, "tree"), false); err != nil {
return errors.Wrapf(err, "while unpacking: %s", REPOFILE_COMPILER_TREE_KEY)
}