-
Notifications
You must be signed in to change notification settings - Fork 771
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix env substitution for docker compose v3 #658
Conversation
8b893a7
to
4adf8d3
Compare
@kadel awesome! Is it worth to include some tests for it, like the once from the issue maybe? |
definitely, I'll add it 😉 |
@kadel , works for me :) |
4adf8d3
to
0d06f9f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Other than two comments, LGTM.
pkg/loader/compose/v3.go
Outdated
) | ||
|
||
// converts os.Envrion ([]string) to map[string]string |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
small spelling error Environ :)
pkg/loader/compose/v3.go
Outdated
// get environment variables | ||
env, err := buildEnvironment() | ||
if err != nil { | ||
return kobject.KomposeObject{}, errors.Wrap(err, "can't build environment") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
May be better putting "Cannot build environment variables"?
0d06f9f
to
ef8c7a7
Compare
fixed as per comments |
LGTM. |
@kadel does this also add replacements for ${FOO:-bar}? Haven't seen this in your tests. |
fixes #650