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

Invalidate cache after generating new GPG key #1699

Merged
merged 1 commit into from
Jan 12, 2021

Conversation

dominikschulz
Copy link
Member

Fixes #1693

RELEASE_NOTES=[BUGFIX] Invalidate GPG key list after generation

Signed-off-by: Dominik Schulz dominik.schulz@gauner.org

Fixes gopasspw#1693

RELEASE_NOTES=[BUGFIX] Invalidate GPG key list after generation

Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
@dominikschulz dominikschulz added the bug Defects label Jan 12, 2021
@dominikschulz dominikschulz added this to the 1.10.2 milestone Jan 12, 2021
Copy link
Member

@AnomalRoil AnomalRoil left a comment

Choose a reason for hiding this comment

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

I guess the one thing we are missing is a test that runs the wizard and create a key and check it works, otherwise we would have caught this a long time ago.
But IDK how if this can be done easily with our current test setup.

@@ -203,7 +203,6 @@ func (s *Action) InitOnboarding(c *cli.Context) error {
return nil
}

ctx = out.AddPrefix(ctx, "[init] ")
Copy link
Member

Choose a reason for hiding this comment

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

Not sure why you removed it, since it can be useful in the logs, but I guess we don't really need it neither.

Copy link
Member Author

Choose a reason for hiding this comment

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

It was duplicated. In my tests there was still one [init] prefix left. Before this change there were two, which felt a bit weird.

@dominikschulz
Copy link
Member Author

I won't have time to add tests for this myself anytime soon, but I've filed #1702 to track.

@dominikschulz dominikschulz merged commit 86d1594 into gopasspw:master Jan 12, 2021
@dominikschulz dominikschulz deleted the fix/issue-1693 branch January 12, 2021 11:43
kpitt pushed a commit to kpitt/gopass that referenced this pull request Jul 21, 2022
Fixes gopasspw#1693

RELEASE_NOTES=[BUGFIX] Invalidate GPG key list after generation

Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Defects
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Wizard fails when there are no PGP keys
2 participants