Skip to content

SearchFiles finds no manifests on Windows: manifest-directory charts render empty #222

Open

Description

@catadiel

Summary

On Windows, a release whose chart is a directory of plain manifests (no Chart.yaml, e.g. *.yaml / *.yaml.gotmpl files) is turned into a chart without templates, so it renders nothing.

  • With chartify v0.27.0 (helmfile 1.7.0) the render stops with:
    assertion failed: unexpected dir entry "" it must be the abs path to the output directory
  • Since Fix crash on empty helm render: treat no-output chart as no-op #207 (v0.30.0, helmfile 1.8.3 / 1.8.4) the empty render is treated as a no-op: the command succeeds, but every manifest-directory release is silently empty. Installing with it deploys empty releases.

The same helmfile on Linux renders everything.

Cause

SearchFiles keeps a file only if its path contains matchSubPath + "/":

https://github.com/helmfile/chartify/blob/4c9a2b0/search.go#L19

r.Walk is filepath.Walk, which on Windows returns paths with backslashes, so no path ever contains / and no manifest (nor .gotmpl file) is found. The generated chart has an empty templates/.

Reproduction (Windows)

Any helmfile release whose chart is a local directory of manifests, e.g.

releases:
  - name: ns
    chart: ./manifests        # manifests/namespace.yaml.gotmpl, no Chart.yaml

Observed on a helmfile of about 30 releases, most of them manifest directories, helmfile template on Windows:

  • helmfile 1.7.0: fails with the assertion above;
  • helmfile 1.8.4: exits 0, but only the releases from remote charts have resources — none of the manifest-directory releases renders anything.

Fix

Match on forward slashes (filepath.ToSlash-equivalent) — one line in SearchFiles. With the change, helmfile 1.7.0 rebuilt with chartify v0.27.0 + the fix renders on Windows exactly what Linux renders for the same input (306 resources). PR to follow.

Activity

  1. added a commit that references this issue on Nov 18, 2026
    81f12e1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions