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

Carry dbconn through cmd #254

Merged
merged 4 commits into from
Jan 7, 2024
Merged

Carry dbconn through cmd #254

merged 4 commits into from
Jan 7, 2024

Conversation

deitch
Copy link
Collaborator

@deitch deitch commented Jan 7, 2024

Accidentally duplicated dbconn inside root.go, so it set it in the local-to-the-function variable dbconn rather than the global-to-the-package variable, causing it to lose value.

At some point, all (3) of the "global to the package" vars probably should just be added to the context via cmd.SetContext(). But this works for now.

@deitch
Copy link
Collaborator Author

deitch commented Jan 7, 2024

Fixes #252

Signed-off-by: Avi Deitcher <[email protected]>
Signed-off-by: Avi Deitcher <[email protected]>
@deitch deitch merged commit d456e5a into master Jan 7, 2024
2 checks passed
@deitch deitch deleted the carry-dbconn-through-cmd branch January 7, 2024 14:28
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.

1 participant