From a25fec270b52759d180d5accef83025d0dc0efc0 Mon Sep 17 00:00:00 2001 From: Christopher Hunter Date: Tue, 5 Mar 2024 18:52:00 -0800 Subject: [PATCH] fix(cargo): fix the "bake_configurations" field "embed_paths" the config field should match that this is not adding dirs but files --- README.md | 2 +- pkg/cargo/kilnfile.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 613b0c69..2070c2e0 100644 --- a/README.md +++ b/README.md @@ -132,7 +132,7 @@ These are the mappings from bake flag to each field in a bake_configurations ele | `"properties_directories"` | `--properties-directory=` | This may be a list of directories. | | `"runtime_configurations_directories"` | `--runtime-configs-directory=` | This may be a list of directories. | | `"bosh_variables_directories"` | `--bosh-variables-directory=` | This may be a list of directories. | -| `"embed_paths_directories"` | `--embed=` | This may be a list of directories. | +| `"embed_files"` | `--embed=` | This may be a list of filepaths. | | `"variable_files"` | `--variables-file=` | This may be a list of filepaths. | ### The Lock File [(source)](https://pkg.go.dev/github.com/pivotal-cf/kiln/pkg/cargo#Kilnfile) diff --git a/pkg/cargo/kilnfile.go b/pkg/cargo/kilnfile.go index 6594797c..4622543e 100644 --- a/pkg/cargo/kilnfile.go +++ b/pkg/cargo/kilnfile.go @@ -368,6 +368,6 @@ type BakeConfiguration struct { PropertyDirectories []string `yaml:"properties_directories,omitempty" json:"properties_directories,omitempty"` RuntimeConfigDirectories []string `yaml:"runtime_configurations_directories,omitempty" json:"runtime_configurations_directories,omitempty"` BOSHVariableDirectories []string `yaml:"bosh_variables_directories,omitempty" json:"bosh_variables_directories,omitempty"` - EmbedPaths []string `yaml:"embed_paths_directories,omitempty" json:"embed_paths_directories,omitempty"` + EmbedPaths []string `yaml:"embed_paths,omitempty" json:"embed_paths,omitempty"` VariableFiles []string `yaml:"variable_files,omitempty" json:"variable_files,omitempty"` }