Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Can't build the main branch #194

Open
remyleone opened this issue May 4, 2022 · 2 comments
Open

Can't build the main branch #194

remyleone opened this issue May 4, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@remyleone
Copy link

What happened?

$ make generate
15:59:19 [ .. ] generating provider schema for hashicorp/aws 3.56.0
15:59:22 [ OK ] generating provider schema for hashicorp/aws 3.56.0
15:59:22 [ .. ] verify dependencies have expected content
all modules verified
15:59:25 [ OK ] go modules dependencies verified
15:59:25 [ .. ] go generate darwin_amd64
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x50 pc=0x1e94dd6]

goroutine 1 [running]:
github.com/crossplane/terrajet/pkg/types.init.0()
        /Users/sieben/workspace/upstream/provider-jet-aws/.work/pkg/pkg/mod/github.com/crossplane/[email protected]/pkg/types/reference.go:73 +0x116
exit status 2
apis/generate.go:35: running "go": exit status 1
15:59:30 [FAIL]
make[1]: *** [go.generate] Error 1
make: *** [generate] Error 2

How can we reproduce it?

make generate on the main branch.

What environment did it happen in?

Crossplane version:

@remyleone remyleone added the bug Something isn't working label May 4, 2022
@waldner
Copy link

waldner commented Jun 6, 2022

The build is failing for me too, but with a different error:

$ make generate
19:49:41 [ .. ] verify dependencies have expected content
go: github.com/hashicorp/terraform-plugin-sdk/[email protected] (replaced by github.com/gdavison/terraform-plugin-sdk/[email protected]): version "v2.0.2-0.20210714181518-b5a3dc95a675" invalid: unknown revision b5a3dc95a675
20:08:12 [FAIL]
make[1]: *** [build/makelib/golang.mk:218: go.vendor.lite] Error 1
make: *** [build/makelib/common.mk:418: generate] Error 2

https://github.com/gdavison/terraform-plugin-sdk is a very old fork of the official repo which hasn't seen any commit since 2020, I don't know why the official one is being substituted with this one...

@haarchri
Copy link
Member

haarchri commented Jun 7, 2022

Think you need to use go1.17

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants