Skip to content

Commit 5e68636

Browse files
authored
Merge pull request #74 from SomtochiAma/incorrect-tf-path-windows
Changes path to filepath
2 parents fea5bf8 + 10541e8 commit 5e68636

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pkg/provider/data_sync.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import (
2020
"context"
2121
"crypto/sha256"
2222
"fmt"
23-
"path/filepath"
23+
"path"
2424
"time"
2525

2626
"github.com/hashicorp/terraform-plugin-sdk/v2/diag"
@@ -113,8 +113,8 @@ func dataSyncRead(ctx context.Context, d *schema.ResourceData, m interface{}) di
113113
return diag.FromErr(err)
114114
}
115115

116-
basePath := filepath.Dir(manifest.Path)
117-
kustomizePath := filepath.Join(basePath, "kustomization.yaml")
116+
basePath := path.Dir(manifest.Path)
117+
kustomizePath := path.Join(basePath, "kustomization.yaml")
118118
paths := []string{opt.ManifestFile, install.MakeDefaultOptions().ManifestFile}
119119
kustomizeContent, err := generateKustomizationYaml(paths)
120120
if err != nil {

0 commit comments

Comments
 (0)