nutshimit / mashin

Mashin is an extensible rust-powered Infrastructure as Code (IaC) platform with a Javascript runtime, simplifying cloud resource management through a seamless combination of custom providers and expressive scripting.
https://mashin.land
MIT License
20 stars 2 forks source link

`Result` in state for `construct_provider!` #25

Open lemarier opened 1 year ago

lemarier commented 1 year ago

Is there an existing issue?

Motivation

Better provider building management

Request

The state builder in construct_provider! should return a Result For better error handling

Solution

https://github.com/nutshimit/mashin/blob/f55b974264774770fe0195a472a02a2d97e4e686/sdk/src/provider.rs#L104

Are you willing to help with this request?

Yes!