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 <idsulik@gmail.com>
  • Loading branch information
idsulik authored and glours committed Oct 30, 2024
1 parent c2ef638 commit 0d824bf
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 0d824bf

Please sign in to comment.