MattHodge / terraform-provider-octopusdeploy

An Octopus Deploy Terraform Provider
MIT License
24 stars 6 forks source link

Terraform Provider Development Program - Initial Review #25

Closed cgriggs01 closed 5 years ago

cgriggs01 commented 5 years ago

Hey Matt,

My name is Chris, I'm a member of the Partner team @ HashiCorp.

I’ve taken a look at the provider here and would like to say great work so far! I do have feedback outlined below that I’d like to see addressed before we move on to the next steps. I’m opening this issues as a sort of checklist for tracking items and discussion.

As well I want to include this list of Terraform provider code expectations/conventions that were define by the Terraform engineering team.

If you have any question about the feedback let me know.

Best, Chris

cgriggs01 commented 5 years ago

Along with the feedback, I'm getting a number or error when trying to build the provider. FYI, I'm running go1.11 on my local machine.

Any suggestion on getting the provider to build?

$ make test
==> Checking that code complies with gofmt requirements...
go test -i $(go list ./... |grep -v 'vendor') || exit 1
# github.com/terraform-providers/terraform-provider-octopusdeploy/octopusdeploy
octopusdeploy/deployment_action.go:93:3: unknown field 'IsRequired' in struct literal of type octopusdeploy.DeploymentAction
octopusdeploy/deployment_action.go:108:9: action.WorkerPoolId undefined (type octopusdeploy.DeploymentAction has no field or method WorkerPoolId)
octopusdeploy/deployment_action.go:115:10: action.Packages undefined (type octopusdeploy.DeploymentAction has no field or method Packages)
octopusdeploy/deployment_action.go:122:10: action.Packages undefined (type octopusdeploy.DeploymentAction has no field or method Packages)
octopusdeploy/deployment_step.go:32:28: undefined: octopusdeploy.DeploymentStepPackageRequirement_LetOctopusDecide
octopusdeploy/deployment_step.go:34:16: undefined: octopusdeploy.DeploymentStepPackageRequirement_LetOctopusDecide
octopusdeploy/deployment_step.go:35:16: undefined: octopusdeploy.DeploymentStepPackageRequirement_BeforePackageAcquisition
octopusdeploy/deployment_step.go:36:16: undefined: octopusdeploy.DeploymentStepPackageRequirement_AfterPackageAcquisition
octopusdeploy/deployment_step.go:43:28: undefined: octopusdeploy.DeploymentStepCondition_Success
octopusdeploy/package_reference.go:56:66: undefined: octopusdeploy.PackageReference
octopusdeploy/deployment_step.go:43:28: too many errors
make: *** [test] Error 1

Thank you for your help!

MattHodge commented 5 years ago

Hi @cgriggs01 , the provider should build successfully now!

Thanks for the big to do list 👍

cgriggs01 commented 5 years ago

Thanks @MattHodge,

I'll rebase and build again.

Let me know when you've addressed the other items.

Best, Chris

cgriggs01 commented 5 years ago

Hey Matt,

I'm still getting the same error during compilation. Any thoughts?