# HG changeset patch # User Steeve Chailloux <steeve.chailloux@orus.io> # Date 1653930425 -7200 # Mon May 30 19:07:05 2022 +0200 # Node ID a7d14d1adec78a5c30508c7b01fbfc1bc7ddb4bf # Parent a1387cdb0a1c595dc1fd0362e9286edb156c82e5 compiled file should preserve extension diff --git a/runner/main.go b/runner/main.go --- a/runner/main.go +++ b/runner/main.go @@ -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()