Skip to content

Commit

Permalink
fix(loader): Add fix for stdin config read
Browse files Browse the repository at this point in the history
  • Loading branch information
idsulik committed Oct 30, 2024
1 parent 222d93c commit 38ad572
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions loader/loader.go
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,12 @@ func LoadConfigFiles(ctx context.Context, configFiles []string, workingDir strin
opts.ResourceLoaders = append(opts.ResourceLoaders, localResourceLoader{})

for i, p := range configFiles {
if p == "-" {
config.ConfigFiles[i] = types.ConfigFile{
Filename: p,
}
continue
}
for _, loader := range opts.ResourceLoaders {
_, isLocalResourceLoader := loader.(localResourceLoader)
if !loader.Accept(p) {
Expand Down

0 comments on commit 38ad572

Please sign in to comment.