Skip to content

Commit d9ae9fa

Browse files
authored
fix: relative path from repo root directory (#2156)
1 parent 8cb787e commit d9ae9fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/bootstrap/bootstrap.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ func downloadSample(ctx context.Context, client *github.Client, templateUrl stri
368368
switch file.GetType() {
369369
case "file":
370370
path := strings.TrimPrefix(file.GetPath(), root)
371-
hostPath := filepath.FromSlash("." + path)
371+
hostPath := filepath.Join(".", filepath.FromSlash(path))
372372
if err := jq.Put(func() error {
373373
return utils.DownloadFile(ctx, hostPath, file.GetDownloadURL(), fsys)
374374
}); err != nil {

0 commit comments

Comments
 (0)