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

Panic on make generate on Terrajet based provider with go 1.18 #271

Description

@Duologic

What happened?

Earlier this week we were updating our Terrajet based provider and ran into this panic
while running make generate:

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x50 pc=0x1e91a76]

goroutine 1 [running]:
github.com/crossplane/terrajet/pkg/types.init.0()
        /Users/julienduchesne/Repos/provider-jet-grafana/.work/pkg/pkg/mod/github.com/crossplane/terrajet@v0.4.0`/pkg/types/reference.go`:73 +0x116
exit status 2
apis/generate.go:33: running "go": exit status 1
15:12:49 [FAIL]
make[1]: *** [go.generate] Error 1
make: *** [generate] Error 2

How can we reproduce it?

  1. Install go 1.18
  2. Checkout https://github.com/grafana/crossplane-provider-grafana
  3. Run make generate

The resolution was to downgrade to go v1.17.

I assume it can/will happen with other Terrajet projects too.

When we digged a little bit, then it quickly went into the go/types library, so I'm not
sure if this is a Terrajet issue or something upstream.

backref downstream: grafana/crossplane-provider-grafana#14

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions