Skip to content

Commit

Permalink
Replace unix-specific /tmp path with os.TempDir
Browse files Browse the repository at this point in the history
  • Loading branch information
paaanic committed Sep 4, 2023
1 parent d951283 commit 736bc96
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/provider/provider.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
package provider

import (
"os"
"path/filepath"

"github.com/hashicorp/terraform/helper/schema"
"github.com/hashicorp/terraform/terraform"
"github.com/vmware-tanzu/terraform-provider-carvel/pkg/kapp"
Expand All @@ -11,7 +14,7 @@ import (
)

func Provider() terraform.ResourceProvider {
logger := logger.MustNewFileRoot("/tmp/terraform-provider-carvel.log")
logger := logger.MustNewFileRoot(filepath.Join(os.TempDir(), "terraform-provider-carvel.log"))
yttLogger := logger.WithLabel("ytt")
kbldLogger := logger.WithLabel("kbld")

Expand Down

0 comments on commit 736bc96

Please sign in to comment.