-
Notifications
You must be signed in to change notification settings - Fork 12
Issue 140 #516
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
Issue 140 #516
Conversation
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.
You should probably turn your new code into a separate function and write a test for it, because it has a logic error now. Try to write the test first.
…t and collectUnsetEnvVars function
src/cmd/cli/command/commands.go
Outdated
loader := compose.Loader{ComposeFilePath: filepath.Join(prompt.Folder, "compose.yaml")} | ||
project, _ := loader.LoadCompose(cmd.Context()) | ||
|
||
envVars := collectUnsetEnvVars(project) // ir err != nil -> proj == nil, which is handled in the collectUnsetEnvVars function |
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.
typo ir
This aims to closes #140 where the hints generated by the current defang generate command is insufficient. I accomplish this by unmarshalling the compose.yaml file to collect the environment variables that need to be set with defang config set.