The make genreate
is failing for go get github.com/crossplane/upjet/pkg/config
01:55:17 [ .. ] go generate linux_amd64
../config/branch/config.go:3:8: no required module provides package github.com/crossplane/upjet/pkg/config; to add it:
go get github.com/crossplane/upjet/pkg/config
apis/generate.go:25: running "go": exit status 1
generate: open /home/reza/provider-github/apis/v1alpha1/zz_generated.deepcopy.go: no such file or directory
01:55:19 [FAIL]
make[1]: *** [build/makelib/golang.mk:240: go.generate] Error 1
make: *** [build/makelib/common.mk:434: generate] Error 2
which I tried to change the files:
/config/repository/config.go /config/branch/config.go
// import "github.com/crossplane/upjet/pkg/config"
import "github.com/upbound/upjet/pkg/config"
go version 1.19 - go.mod
02:10:11 [ .. ] go mod tidy
go: go.mod file indicates go 1.19, but maximum version supported by tidy is 1.18
02:10:11 [FAIL]
make[1]: *** [build/makelib/golang.mk:243: go.generate] Error 1
make: *** [build/makelib/common.mk:434: generate] Error 2
which I had to change it:
go 1.18 to pass the error.
❯ kubectl apply -f examples/repository/repository.yaml
error: resource mapping not found for name: "hello-crossplane" namespace: "" from "examples/repository/repository.yaml": no matches for kind "Repository" in version "repository.github.upbound.io/v1alpha1"
ensure CRDs are installed first
❯ kubectl apply -f examples/branch/branch.yaml
error: resource mapping not found for name: "hello-upjet" namespace: "" from "examples/branch/branch.yaml": no matches for kind "Branch" in version "branch.github.upbound.io/v1alpha1"
ensure CRDs are installed first