Merge "Create embedcfg directory before writing the file" into main

This commit is contained in:
Treehugger Robot 2024-05-09 16:42:08 +00:00 committed by Gerrit Code Review
commit 0bc93e1a92

View file

@ -584,6 +584,7 @@ func generateEmbedcfgFile(files []string, srcDir string, embedcfgFile string) {
panic(err)
}
os.MkdirAll(filepath.Dir(embedcfgFile), os.ModePerm)
os.WriteFile(embedcfgFile, []byte(embedcfgData), 0644)
}