We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c676fd commit 40843e6Copy full SHA for 40843e6
cli/options.go
@@ -217,7 +217,10 @@ func WithLoadOptions(loadOptions ...func(*loader.Options)) ProjectOptionsFn {
217
// profiles specified via the COMPOSE_PROFILES environment variable otherwise.
218
func WithDefaultProfiles(profile ...string) ProjectOptionsFn {
219
if len(profile) == 0 {
220
- profile = strings.Split(os.Getenv(consts.ComposeProfiles), ",")
+ for _, s := range strings.Split(os.Getenv(consts.ComposeProfiles), ",") {
221
+ profile = append(profile, strings.TrimSpace(s))
222
+ }
223
+
224
}
225
return WithProfiles(profile)
226
0 commit comments