Pass Options when recursively calling writeIndex (#1172)
Pass Options when recursively calling writeIndex (#1172)

Noticed while pushing nested indexes, we lose authentication options
when attempting to upload a nested index WriteIndex.

This change ensures options are maintained and passed to recursive calls to writeIndex.

Co-authored-by: Ryan Miller <436abad3a54da1f41465af15b8773a34c9940244@google.com>
google/go-containerregistry,google/go-containerregistry