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

Drop gratuitous sync.Once in google CAs. #258

Merged
merged 1 commit into from Dec 2, 2021

Conversation

mattmoor
Copy link
Member

@mattmoor mattmoor commented Dec 2, 2021

This threads cmd.Context() into the constructor, and has it call the client constructor directly. Previously the caller was already wrapped in a sync.Once, but not this is all called once from the command's Run method.

WIP until #257 merges.

Signed-off-by: Matt Moore mattmoor@chainguard.dev

Ticket Link

N/A

Release Note

NONE

This threads `cmd.Context()` into the constructor, and has it call the client constructor directly.  Previously the caller was already wrapped in a `sync.Once`, but not this is all called once from the command's `Run` method.

Signed-off-by: Matt Moore <mattmoor@chainguard.dev>
@mattmoor mattmoor changed the title [WIP] Drop gratuitous sync.Once in google CAs. Drop gratuitous sync.Once in google CAs. Dec 2, 2021
@mattmoor
Copy link
Member Author

mattmoor commented Dec 2, 2021

cc @n3wscott

@bobcallaway bobcallaway merged commit 67510bf into sigstore:main Dec 2, 2021
@mattmoor mattmoor deleted the remove-sync-once branch December 2, 2021 15:07
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.

None yet

2 participants