Uploaded image for project: 'Hybrid Cloud Console'
  1. Hybrid Cloud Console
  2. RHCLOUD-34982

Allow to select Go version in FEO

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major Major
    • None
    • None
    • FE Operator
    • False
    • Hide

      None

      Show
      None
    • False
    • Unset
    • None

      Working with a newer go version (1.22) breaks FEO, and with the current Makefile config one cannot select which Go version to use easily. 

      $ make test
      
      /home/vmugicag/dev/projects/frontend-operator/testbin/bin/controller-gen rbac:roleName=manager-role crd webhook paths="./..." output:crd:artifacts:config=config/crd/basespanic: runtime error: invalid memory address or nil pointer dereference [recovered]	panic: runtime error: invalid memory address or nil pointer dereference[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0xa0c0af]
      goroutine 140 [running]:go/types.(*Checker).handleBailout(0xc000260400, 0xc00131bd40)	/usr/local/go/src/go/types/check.go:367 +0x88panic({0xbb8e60?, 0x1298d30?})	/usr/local/go/src/runtime/panic.go:770 +0x132go/types.(*StdSizes).Sizeof(0x0, {0xdad5f8, 0x12a1780})	/usr/local/go/src/go/types/sizes.go:228 +0x30fgo/types.(*Config).sizeof(...)	/usr/local/go/src/go/types/sizes.go:333go/types.representableConst.func1({0xdad5f8?, 0x12a1780?})	/usr/local/go/src/go/types/const.go:76 +0x9ego/types.representableConst({0xdb3ac0, 0x126d5e0}, 0xc000260400, 0x12a1780, 0xc00131b4b0)	/usr/local/go/src/go/types/const.go:92 +0x192go/types.(*Checker).representation(0xc000260400, 0xc00127f2c0, 0x12a1780)	/usr/local/go/src/go/types/const.go:256 +0x65go/types.(*Checker).implicitTypeAndValue(0xc000260400, 0xc00127f2c0, {0xdad620, 0xc000166c40})	/usr/local/go/src/go/types/expr.go:375 +0x2d7go/types.(*Checker).assignment(0xc000260400, 0xc00127f2c0, {0xdad620, 0xc000166c40}, {0xc860a7, 0x14})	/usr/local/go/src/go/types/assignments.go:52 +0x2e5go/types.(*Checker).initConst(0xc000260400, 0xc001185ec0, 0xc00127f2c0)	/usr/local/go/src/go/types/assignments.go:126 +0x2c5go/types.(*Checker).constDecl(0xc000260400, 0xc001185ec0, {0xdb02b8, 0xc00182afa0}, {0xdb02b8, 0xc00182afc0}, 0x0)	/usr/local/go/src/go/types/decl.go:490 +0x311go/types.(*Checker).objDecl(0xc000260400, {0xdb9140, 0xc001185ec0}, 0x0)	/usr/local/go/src/go/types/decl.go:191 +0xa49go/types.(*Checker).packageObjects(0xc000260400)	/usr/local/go/src/go/types/resolver.go:693 +0x4ddgo/types.(*Checker).checkFiles(0xc000260400, {0xc00154de60, 0x5, 0x5})	/usr/local/go/src/go/types/check.go:408 +0x1a5go/types.(*Checker).Files(...)	/usr/local/go/src/go/types/check.go:372sigs.k8s.io/controller-tools/pkg/loader.(*loader).typeCheck(0xc000240ff0, 0xc001222f00)	/home/vmugicag/go/pkg/mod/sigs.k8s.io/controller-tools@v0.8.0/pkg/loader/loader.go:283 +0x36asigs.k8s.io/controller-tools/pkg/loader.(*Package).NeedTypesInfo(0xc001222f00)	/home/vmugicag/go/pkg/mod/sigs.k8s.io/controller-tools@v0.8.0/pkg/loader/loader.go:96 +0x39sigs.k8s.io/controller-tools/pkg/loader.(*TypeChecker).check(0xc00156b8f0, 0xc001222f00)	/home/vmugicag/go/pkg/mod/sigs.k8s.io/controller-tools@v0.8.0/pkg/loader/refs.go:263 +0x2b7sigs.k8s.io/controller-tools/pkg/loader.(*TypeChecker).check.func1(0x51?)	/home/vmugicag/go/pkg/mod/sigs.k8s.io/controller-tools@v0.8.0/pkg/loader/refs.go:257 +0x53created by sigs.k8s.io/controller-tools/pkg/loader.(*TypeChecker).check in goroutine 12	/home/vmugicag/go/pkg/mod/sigs.k8s.io/controller-tools@v0.8.0/pkg/loader/refs.go:255 +0x1c5make: *** [Makefile:98: manifests] Error 2

              vmugicag Victor Manuel Múgica Gómez
              vmugicag Victor Manuel Múgica Gómez
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: