opentofu / registry-alpha

Home of the official OpenTofu provider and module registry
Apache License 2.0
64 stars 13 forks source link

Improve error handling around provider version fetching. #131

Closed Yantrio closed 1 year ago

Yantrio commented 1 year ago

This PR does 2 things primarily

  1. moves the creation of the result.Version in GetVersions so that we don't accidentally return a half created version

  2. Changes the logic of fetching versions to ensure that we error if we fail to fetch any of the version information. This ensures that our information is always correct and not partial