Skip to content

[Bug]: Built-in catalog templates cannot be loaded on Windows #502

Description

@BittuBarnwal7479

📝 Description

The built-in template renderer cannot load Helm or Terraform catalog templates on Windows.

The template roots are constructed with filepath.Join, which produces backslash-separated paths (\) on Windows. These paths are then passed to embed.FS, but Go's io/fs APIs always expect forward-slash (/) separated paths. As a result, the embedded template directories cannot be found.

🧪 Steps to Reproduce

  1. Clone the repository on Windows.

  2. Change to the src directory.

  3. Run:

    go test ./internal/render
    

💻 Environment

Kubara branch: main
Go version: go1.26.4 windows/amd64
OS: Windows

📎 Additional Context / Logs

Image

✅ Checklist

  • I have searched existing issues
  • I am using the latest version of Kubara
  • The issue is reproducible
  • This is not a duplicate

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions