[Bug]: Build fails with Go 1.23 because of changed testing.testDeps
stefanb opened this issue · 2 comments
stefanb commented
What happened:
build fails with
# github.com/kudobuilder/kuttl/pkg/test/utils
pkg/test/utils/testing.go:44:28: cannot use &testDeps{} (value of type *testDeps) as "testing".testDeps value in argument to testing.MainStart: *testDeps does not implement "testing".testDeps (missing method InitRuntimeCoverage)
What you expected to happen:
build to succeed.
How to reproduce it (as minimally and precisely as possible):
- Install Go 1.23 (rc1, rc2 or later)
- build
Anything else we need to know?:
Related:
- found while building with Homebrew/homebrew-core#175310
- similar issue: hofstadter-io/hof#391
Environment:
- Kubernetes version (use
kubectl version
): - KUTTL version (use
kubectl kuttl version
): - Cloud provider or hardware configuration:
- OS (e.g. from /etc/os-release):
- Kernel (e.g.
uname -a
): - Install tools:
- Others:
porridge commented
Thanks for the report @stefanb !
Looks like we'll need something similar to https://github.com/hofstadter-io/hof/pull/392/files#diff-f08861a287bce287f8852024b94cd158021f70f1b18fdd846aabbde6d3bfc607R69 including making the testing.MainStart
call versioned with build tags 🤔