mirror of
https://github.com/docker/compose.git
synced 2026-05-13 13:58:02 +00:00
fix: initialize and pass envFiles map in processExtends
Signed-off-by: Mohamed-Moumni <mohamedmoumni593@gmail.com>
This commit is contained in:
parent
612b8c567e
commit
e742d09711
1 changed files with 2 additions and 1 deletions
|
|
@ -197,8 +197,9 @@ func (s *composeService) createLayers(ctx context.Context, project *types.Projec
|
|||
func processExtends(ctx context.Context, project *types.Project, extFiles map[string]string) ([]v1.Descriptor, error) {
|
||||
var layers []v1.Descriptor
|
||||
moreExtFiles := map[string]string{}
|
||||
envFiles := map[string]string{}
|
||||
for xf, hash := range extFiles {
|
||||
data, err := processFile(ctx, xf, project, moreExtFiles, nil)
|
||||
data, err := processFile(ctx, xf, project, moreExtFiles, envFiles)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue