terraform-community-providers / terraform-provider-railway

Terraform provider for railway.app
https://registry.terraform.io/providers/terraform-community-providers/railway/latest/docs
Mozilla Public License 2.0
22 stars 1 forks source link

Provider dies with SIGSEGV when using private registry credentials #31

Closed wertlex closed 1 month ago

wertlex commented 1 month ago
Screenshot 2024-08-02 at 21 37 37

Explanation

This is purely inaccurate merge. My initial PR was having ServiceInstanceUpdateInput#RegistryCredentials as an instance, while a version merged eventually has the same field as a pointer: https://github.com/terraform-community-providers/terraform-provider-railway/blob/813c9479ab5a6fbfdbea0a37c3fbe7aef51e5775/internal/provider/generated.go#L571

However, this code path didn't changed, what leads to null pointer dereference: https://github.com/terraform-community-providers/terraform-provider-railway/blob/bf433f2ec2d3aee1399f95ee2193ee0418d4e010/internal/provider/resource_service.go#L624

Funding

Fund with Polar