Skip to content

Fix init command fails to create config file with empty name #954

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

Closed
wants to merge 1 commit into from

Conversation

lukahartwig
Copy link

When no filename was provided through the file flag, the flag falls back to an empty string, not nil. The init command tries to create a config file with the empty file flag and fails.

As a fix, I set the default value in the flag. I looked through the code to see if anything depends on the empty string behavior but couldn't find anything.

@kyleconroy kyleconroy mentioned this pull request Mar 30, 2021
@kyleconroy
Copy link
Collaborator

Thanks for the PR. I don't actually want to set a default for the file parameter, so I fixed it a different way in #959

@kyleconroy kyleconroy closed this Mar 30, 2021
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.

2 participants