Open raffaelespazzoli opened 1 year ago
I also ran into this problem. https://github.com/crossplane/terrajet/pull/291 seems to correct it.
After that, I ran into another Go 1.18 problem:
ERRO Running error: buildir: failed to load package goarch: could not load export data: cannot import "internal/goarch" (unknown iexport format version 2), export data is newer version - update tool
This is resolved by adding GOLANGCILINT_VERSION ?= 1.48.0
to the Makefile (the version from upbound/build is older)
I'm also getting this error:
/bin/bash: line 1: /home/rspazzol/git/provider-jet-github/.cache/tools/linux_x86_64/goimports: No such file or directory
make[1]: *** [build/makelib/golang.mk:271: go.generate] Error 127
make: *** [build/makelib/common.mk:419: generate] Error 2
the make file should download the needed tools automatically but it doesn't for reasons I can't understand.
running go install golang.org/x/tools/cmd/goimports@latest
does not seem to fix the issue.
What problem are you facing?
panic error during
make generate
How could Template Provider help solve your problem?
this error does not happen with go 1.17, it seems to happen with following versions of go 1.18 and 1.19. template provider should be tested with those versions of go, or upgraded to them.