Skip to content

Local testing - Second Pair of Eyes #223

Answered by akashsinghal
jimmyraywv asked this question in Q&A
Discussion options

You must be logged in to vote

@jimmyraywv The auth providers are registered in their respective init() functions and the init() function is called when another package imports the current provider. In our cases, the azure and aws provider packages aren't explicitly imported elsewhere so we need to force an import somewhere. I suggest adding a blank import to the oras.go file like we did for the azure auth provider here: https://github.com/jimmyraywv/ratify/blob/2dfe7c9be53cef7dd4ec602d0a8dd658572001ce/pkg/referrerstore/oras/oras.go#L43. This should resolve the issue.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jimmyraywv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants