Skip to content

Commit cc54d83

Browse files
committed
fix: stable name needs to come from chart, not values
1 parent b9204e0 commit cc54d83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkgs/nixchart/nixchart.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ var evalChart = func(chart map[string]any, hfbase string) (string, error) {
151151
if err != nil {
152152
log.Fatalln("Failed to convert JSON to YAML for chart:", chart, " : ", err)
153153
}
154-
chartDir := path.Join(os.TempDir(), fmt.Sprintf("nixChart-%s-%s", v["namespace"], v["name"]))
154+
chartDir := path.Join(os.TempDir(), fmt.Sprintf("nixChart-%s-%s", chart["namespace"], chart["name"]))
155155
err = os.MkdirAll(chartDir, 0o700)
156156
if err != nil {
157157
log.Fatalln("Failed to create temporary directory for chart:", chartDir, " : ", err)

0 commit comments

Comments
 (0)