sigstore-rs icon indicating copy to clipboard operation
sigstore-rs copied to clipboard

Fix error in Rekor get_log_info example

Open lkatalin opened this issue 1 year ago • 0 comments

The current get log info example reports that it may return an error.

We should fix this bug so that it no longer returns an error. We can look to how the original Rekor handles this problem to fix it.

Original Rekor refs: https://github.com/sigstore/rekor/blob/main/cmd/rekor-cli/app/log_info.go https://github.com/sigstore/rekor/blob/7492834cfcf56c87ad80034099d337f0fb05181c/pkg/api/tlog.go#L40

Testing: https://github.com/sigstore/rekor/blob/5cd02e717bae7298cc2d2c33ffdfc62c250c9a2c/pkg/client/rekor_client_test.go#L52 https://github.com/sigstore/rekor/blob/2081fbbf3372a00437b0eadc8ad53f2f17e035a8/tests/e2e_test.go#L214

lkatalin avatar Aug 30 '22 19:08 lkatalin