Skip to content
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

octopus config set interactive mode broken #83

Merged
merged 1 commit into from
Sep 21, 2022
Merged

Conversation

borland
Copy link
Collaborator

@borland borland commented Sep 20, 2022

Fix #82

@borland borland requested review from a team, domenicsim1 and jbristowe September 20, 2022 10:00
@@ -103,8 +103,8 @@ func promptMissing(ask question.Asker, key string) (string, string, error) {
}
key = k
}
// Deliberate reach-out to the global viper to ask it what is valid (localViper doesn't know much)
if !viper.InConfig(key) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bug was that viper.InConfig would check if the key was specifically in the config file, rather than just being known to viper as a potentially valid key

Copy link
Collaborator

@domenicsim1 domenicsim1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@borland borland merged commit 0b43d8b into main Sep 21, 2022
@borland borland deleted the orion/minor-config-bug branch September 21, 2022 00:42
This was referenced Jul 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

octopus config set is broken in interactive mode
2 participants