You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
returnfmt.Errorf("config %q is declare as an environment variable. To avoid leaking sensitive data, "+
151
-
"you must either explicitly allow the sending of environment variables by using the --with-env flag,"+
152
-
" or remove sensitive data from your Compose configuration", config.Name)
180
+
if!options.WithEnvironment&&len(errorList) >0 {
181
+
errorMsgSuffix:="To avoid leaking sensitive data, you must either explicitly allow the sending of environment variables by using the --with-env flag,\n"+
182
+
"or remove sensitive data from your Compose configuration"
// we don't in which order the services will be loaded, so we can't predict the order of the error messages
50
+
assert.Assert(t, strings.Contains(res.Combined(), `service "serviceB" has env_file declared.`), res.Combined())
51
+
assert.Assert(t, strings.Contains(res.Combined(), `service "serviceB" has environment variable(s) declared.`), res.Combined())
52
+
assert.Assert(t, strings.Contains(res.Combined(), `service "serviceA" has environment variable(s) declared.`), res.Combined())
53
+
assert.Assert(t, strings.Contains(res.Combined(), `To avoid leaking sensitive data, you must either explicitly allow the sending of environment variables by using the --with-env flag,
54
+
or remove sensitive data from your Compose configuration
0 commit comments