From 165054ca536518d43b45ca5825e0c692ba7e9f82 Mon Sep 17 00:00:00 2001 From: Patrice Ferlet Date: Fri, 1 Apr 2022 17:49:10 +0200 Subject: [PATCH] For single env_file, it's a string... see #8 --- compose/parser.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/compose/parser.go b/compose/parser.go index 5ae754a..03d68d5 100644 --- a/compose/parser.go +++ b/compose/parser.go @@ -204,6 +204,8 @@ func parseEnvFiles(s *Service) { for _, v := range v { envfiles = append(envfiles, v.(string)) } + case string: + envfiles = append(envfiles, v) default: log.Printf("%+v %T", s.RawEnvFiles, s.RawEnvFiles) log.Fatal("EnvFile type not supported")