-
Notifications
You must be signed in to change notification settings - Fork 12
Comments
@mikebollandajw thanks for reporting. This was caused due to a recent change where we started consuming upbound build utilities as a submodule. I'll update the guide accordingly. In the meantime, you can workaround by running the following once after cloning the repository to your local:
|
Fixes crossplane-contrib/provider-jet-template#16 Signed-off-by: Hasan Turken <turkenh@gmail.com>
|
What do you see with:
What is your go version? Please see: https://stackoverflow.com/questions/60410729/unknown-subcommand-mod-error-while-running-go-mod-init |
oh good point let me try updating that |
I would also suggest to get latest template from main, just merged a big change bumping Terrajet to v0.4.0! |
my go version is 1.10.4 from ubuntu 18.04 which is the required version for this? |
We need go 1.17 here |
go mod tidy is using 'crossplane-contrib/*' as its domain path for my provider despite me changing it in the template guide steps
|
i started from scratch with the new template and go 1.17 but it is still the above issues @turkenh |
|
can you reopen this since i still cant build from the template guide thanks! |
actually, nm, looks like the terraform provider argument i used was not correct |
@mikebollandajw does this mean you're good to go and we don't need to reopen ticket? |
generate is stuck on
|
Did you change module name here: https://github.com/crossplane-contrib/provider-jet-template/blob/main/go.mod#L1 ? This would require all import paths to be updated. |
no sir i just followed the guide, i guess some script is doing that? |
I can check if you could share your code/repo. |
thi sis in the hack/prepare.sh |
make generate
12:45:48 [ .. ] installing terraform darwin-x86_64
Archive: /Users/hasanturken/Workspace/tmp/provider-jet-azuread/.cache/tools/darwin_x86_64/tmp-terraform/terraform.zip
inflating: /Users/hasanturken/Workspace/tmp/provider-jet-azuread/.cache/tools/darwin_x86_64/tmp-terraform/terraform
12:45:52 [ OK ] installing terraform darwin-x86_64
12:45:52 [ .. ] generating provider schema for hashicorp/null 3.1.0
12:46:00 [ OK ] generating provider schema for hashicorp/null 3.1.0
12:46:00 [ .. ] verify dependencies have expected content
all modules verified
12:46:01 [ OK ] go modules dependencies verified
12:46:01 [ .. ] go generate darwin_amd64
go: downloading github.com/crossplane/crossplane-tools v0.0.0-20210916125540-071de511ae8e
go: downloading sigs.k8s.io/controller-tools v0.8.0
go: downloading github.com/muvaf/typewriter v0.0.0-20220131201631-921e94e8e8d7
go: downloading golang.org/x/tools v0.1.6-0.20210820212750-d4cc65f0b2ff
go: downloading github.com/dave/jennifer v1.4.1
go: downloading github.com/spf13/cobra v1.2.1
go: downloading github.com/fatih/color v1.12.0
go: downloading github.com/gobuffalo/flect v0.2.3
go: downloading github.com/mattn/go-isatty v0.0.12
go: downloading github.com/mattn/go-colorable v0.1.8
go: downloading golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1
go: downloading golang.org/x/mod v0.4.2
Generated 1 resources!
12:46:22 [ OK ] go generate darwin_amd64
12:46:22 [ .. ] go mod tidy
go: downloading github.com/onsi/gomega v1.17.0
go: downloading github.com/golang/mock v1.6.0
go: downloading github.com/stretchr/testify v1.7.0
go: downloading github.com/onsi/ginkgo v1.16.5
go: downloading go.uber.org/goleak v1.1.12
go: downloading github.com/inconshreveable/mousetrap v1.0.0
go: downloading github.com/benbjohnson/clock v1.1.0
go: downloading github.com/apparentlymart/go-dump v0.0.0-20190214190832-042adf3cf4a0
go: downloading github.com/go-test/deep v1.0.3
go: downloading github.com/nsf/jsondiff v0.0.0-20200515183724-f29ed568f4ce
go: downloading gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c
go: downloading google.golang.org/appengine v1.6.7
go: downloading github.com/pmezard/go-difflib v1.0.0
go: downloading github.com/kr/pretty v0.2.1
go: downloading github.com/kylelemons/godebug v1.1.0
go: downloading github.com/nxadm/tail v1.4.8
go: downloading github.com/kr/text v0.2.0
go: downloading gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7
go: downloading github.com/hashicorp/terraform-plugin-sdk v1.17.2
go: downloading github.com/hashicorp/hcl v1.0.0
go: downloading github.com/apparentlymart/go-textseg v1.0.0
go: downloading github.com/cespare/xxhash v1.1.0
12:46:26 [ OK ] go mod tidy
12:46:26 [ .. ] cleaning generated CRDs
12:46:26 [ OK ] cleaned generated CRDs |
yeah, I was asking for manual changes other than that. |
This does not look like your final state btw: https://github.com/ajwgroup/provider-jet-azuread/blob/main/Makefile#L4 |
oh i havent commited sorry one sec |
deployed |
Run the guide on my side and generation was successful: https://github.com/turkenh/provider-jet-azuread Comparing our codes, I found the following diff which seems to be the culprit:
I would suggest you replace all occurrences of that string inside the repository if you want to change it. |
Oh but people wanting to contribute cannot deploy to crossplane-contrib so it is a little confusing Are you saiyng we shouldnt change the PROJECT_REPO variable? Can the guide be updated to reflect this? Thanks! |
You can still host it on your github org without changing that variable. It would simply work. But I totally agree that is confusing and we should clarify in the guide. May be a step which finds and replaces all |
yeah of course! thanks for getting this working for us we are hoping to migrate some of our old terraform over to helm with crossplane so this provider converter to use azuread is a big help |
Raised, thanks! crossplane/terrajet#243 |
should the script also be supplying goimports?
|
that appeared to be the final issue to finish generate :-) thanks again! |
Fixes crossplane-contrib/provider-jet-template#16 Signed-off-by: Hasan Turken <turkenh@gmail.com>
What happened?
the make file appears to not work, im not sure if there is dependencies im expected to do but they arent in the guide
even just make does
How can we reproduce it?
follow the guide on ubuntu wsl
The text was updated successfully, but these errors were encountered: