-
Notifications
You must be signed in to change notification settings - Fork 876
Allow using sigstore keys with empty passphrases #2720
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
base: main
Are you sure you want to change the base?
Conversation
18ebbd3 to
332cd11
Compare
| opts := fakeSharedCopyOptions(t, c.options) | ||
| res, cleanup, err := opts.copyOptions(&someStdout) | ||
| require.NoError(t, err) | ||
| defer cleanup() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
nit: defer cleanup() will run only after the loop finishes, is it possible to run the cleanup() at the end of each loop to avoid resources leaking or exhaustion?
Or is this anything that it needs to be kept there for re usage ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You’re right that the cleanup could be done earlier, and that it would be conceptually cleaner.
I don’t think it matters much either way here; this is a short-running test, and the loop iterations are all listed just above (5–6 of them).
The cost would be adding another func(){…}() nesting level — a very minor downside in readability.
332cd11 to
e669ef5
Compare
|
LGTM |
|
@aguidirh PTAL. If you give this a LGTM, we'll move it along. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, should I approve or give a specific label? Or is this responsibility of a specific person?
|
@aguidirh "LGTM" works just fine, TYVM! |
|
/approve |
|
/lgtm |
e669ef5 to
434518a
Compare
|
There is no merge bot here… just an (out-of-sync) GitHub list of user accounts allowed to click on the merge button. |
Should not change (test) behavior. Signed-off-by: Miloslav Trmač <[email protected]>
Signed-off-by: Miloslav Trmač <[email protected]>
434518a to
e25230f
Compare
Fixes #2712 . See individual commit messages for details.