Skip to content
Snippets Groups Projects
Commit a7d14d1adec7 authored by steeve.chailloux's avatar steeve.chailloux
Browse files

compiled file should preserve extension

parent a1387cdb0a1c
No related branches found
No related tags found
No related merge requests found
......@@ -72,7 +72,7 @@
fmt.Printf("\n%s\n\n", strings.Join(stdErr, "\n"))
return fmt.Errorf("failed to run command: %w", err)
}
if tmpFile, err := ioutil.TempFile(tmpDir, fmt.Sprintf("compiled-%s-", name)); err != nil {
if tmpFile, err := ioutil.TempFile(tmpDir, fmt.Sprintf("compiled-%s-*.yaml", name)); err != nil {
return fmt.Errorf("cannot create compiled file: %w", err)
} else {
defer tmpFile.Close()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment