Unable to generate Xplane provider from a Terraform provider ~> Error: not all generators ran successfully
- Dominant language
- Go
- Stars
- 481
- Forks
- 131
- Avg merge
- 2d 1h
- Merged PRs (30d)
- 11
Description
Hi, I am following the documentation [here](https://github.com/crossplane/upjet/blob/main/docs/generating-a-provider.md) trying to generate Crossplane provider from this [Terraform provider](https://registry.terraform.io/providers/OrographicLift/hlb/latest).
I am targeting API V2 of Crossplane - by this I mean that I am referencing "github.com/crossplane/upjet/v2/pkg/*" paths in the import statements.
When running `make generate` I am receiving the following error message:
```
15:30:53 [ .. ] generating provider schema for OrographicLift/hlb 1.2.0
15:30:54 [ OK ] generating provider schema for OrographicLift/hlb 1.2.0
15:30:54 [ .. ] go generate linux_arm64
Running goimports on apis folder with scope Cluster
Running goimports on controller folder with scope Cluster
Generated 1 resources with scope Cluster!
Running goimports on apis folder with scope Namespaced
Running goimports on controller folder with scope Namespaced
Generated 1 resources with scope Namespaced!
cluster/zz_register.go:14:2: no required module provides package github.com/footprint-it-solutions/provider-zonehero-v2/apis/cluster/v1alpha1; to add it:
go get github.com/footprint-it-solutions/provider-zonehero-v2/apis/cluster/v1alpha1
cluster/zz_register.go:15:2: no required module provides package github.com/footprint-it-solutions/provider-zonehero-v2/apis/cluster/v1beta1; to add it:
go get github.com/footprint-it-solutions/provider-zonehero-v2/apis/cluster/v1beta1
namespaced/zz_register.go:14:2: no required module provides package github.com/footprint-it-solutions/provider-zonehero-v2/apis/namespaced/v1alpha1; to add it:
go get github.com/footprint-it-solutions/provider-zonehero-v2/apis/namespaced/v1alpha1
namespaced/zz_register.go:15:2: no required module provides package github.com/footprint-it-solutions/provider-zonehero-v2/apis/namespaced/v1beta1; to add it:
go get github.com/footprint-it-solutions/provider-zonehero-v2/apis/namespaced/v1beta1
Error: not all generators ran successfully
run `controller-gen object:headerFile=../hack/boilerplate.go.txt paths=./... crd:allowDangerousTypes=true,crdVersions=v1 output:artifacts:config=../package/crds -w` to see all available markers, or `controller-gen object:headerFile=../hack/boilerplate.go.txt paths=./... crd:allowDangerousTypes=true,crdVersions=v1 output:artifacts:config=../package/crds -h` for usage
exit status 1
apis/generate.go:28: running "go": exit status 1
15:30:56 [FAIL]
make[1]: *** [go.generate] Error 1
make: *** [generate] Error 2
```
Sadly the documentation that I am following does not mention anything about scopes of the resources so I am not sure if my work is missing any code.
When attempting to issue the proposed `go get` commands I am receiving this error message:
```
go get github.com/footprint-it-solutions/provider-zonehero-v2/apis/cluster/v1alpha1
go: github.com/footprint-it-solutions/provider-zonehero-v2/apis/cluster/v1alpha1: no matching versions for query "upgrade"
```
what can I do to resolve this issue?
Platform: MacOS
go version go1.24.7 darwin/arm64
Terraform v1.13.1 on darwin_arm64
Contributor guide
Assessment
This issue has not been assessed yet.