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

BUGFIX: f.StringVarP() was clearing the exportPath/databasePath strings #267

Merged
merged 1 commit into from
Dec 12, 2023

Conversation

spillner
Copy link
Contributor

@spillner spillner commented Dec 9, 2023

I'm not sure how sbctl create ever worked with the default paths--- the var {} block initially sets exportPath/databasePath to the default values from the sbctl module, but then pflag.StringVarP() overwrote them with empty string passed in as the value parameter. From https://github.com/spf13/pflag/blob/master/string.go it looks like that has been the behavior for a long time.

Fixed by passing the values from sbctl as the initialization value in StringVarP().

@spillner spillner temporarily deployed to Build, sign, release binaries December 11, 2023 08:15 — with GitHub Actions Inactive
@spillner spillner temporarily deployed to Build, sign, release binaries December 11, 2023 08:15 — with GitHub Actions Inactive
@spillner spillner temporarily deployed to Build, sign, release binaries December 11, 2023 08:15 — with GitHub Actions Inactive
@Foxboron Foxboron merged commit d3e9315 into Foxboron:master Dec 12, 2023
5 of 6 checks passed
@Foxboron
Copy link
Owner

Thanks!

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