Closed TheoBrigitte closed 3 months ago
Hi @TheoBrigitte, I don't think there was a report of such a bug. Can you please expand on how to repeat the bug? Does it depend on specific versions of other tooling?
To my understanding the tools needed are go
and make
Here is my environment
$ go version
go version go1.22.0 linux/amd64
$ make --version
GNU Make 4.4.1
Built for x86_64-pc-linux-gnu
Copyright (C) 1988-2023 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
$ uname -a
Linux x1 5.15.154-1-MANJARO #1 SMP PREEMPT Wed Apr 10 19:10:26 UTC 2024 x86_64 GNU/Linux
How to reproduce
$ rm $(which controller-gen)
$ make manifests
<same error as above>
OK, thanks. It seems it happens with Golang 1.22: k6-operator is at 1.21 now. For reference:
I'll need to look into those in detail before returning to this PR. It'd be nice if there was another workaround... But Go 1.21 should work.
This PR updates
controller-gen
tov0.14.0
in order to get rid of a bug impeding themake manifest
andmake generate
commandsIt also simplifies the installation process for
controller-gen