We had a customer which asked the packaging of telegraf however, we got nowhere. The `go mod` support is starting to become the standard however it does not work at all on OE-Core. I am not used to `go mod` but would be keen to help if someone knows well how to do the proper integration.
Created attachment 4673 [details] telegraf_1.14.2.bb See comments in the recipe for how I made go module support work.
I had a couple of hours to look at this, and while I got telegraf to build OK, I'm less certain about how to generalize the changes I made to work for any package that uses go modules. I don't have time to look into this any further, but hopefully the above recipe will help point someone in the right direction.
I sent the patches fixing this. I made a class which makes it easier to get it right and cleaned it a lot. Matt, thanks for your effort on looking at this, it helped a lot.