Skip to content

Commit

Permalink
fix(loader): Add fix for stdin config read
Browse files Browse the repository at this point in the history
Signed-off-by: Suleiman Dibirov <[email protected]>
  • Loading branch information
idsulik committed Oct 30, 2024
1 parent 222d93c commit 56ad854
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions loader/loader.go
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,13 @@ 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 56ad854

Please sign in to comment.