We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff4c7f5 commit 8adba2eCopy full SHA for 8adba2e
pkg/utils/paths.go
@@ -89,7 +89,15 @@ func NitricLogDir(stackPath string) string {
89
90
// NewNitricLogFile returns a path to a unique log file that does not exist.
91
func NewNitricLogFile(stackPath string) (string, error) {
92
- tf, err := os.CreateTemp(NitricLogDir(stackPath), "run-*.log")
+ logDir := NitricLogDir(stackPath)
93
+
94
+ // ensure .nitric exists
95
+ err := os.MkdirAll(logDir, os.ModePerm)
96
+ if err != nil {
97
+ return "", err
98
+ }
99
100
+ tf, err := os.CreateTemp(logDir, "run-*.log")
101
if err != nil {
102
return "", err
103
}
0 commit comments