Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make test fails with make: *** [Makefile:73: test] Error 1 #3124

Open
valdar opened this issue Feb 19, 2025 · 1 comment
Open

make test fails with make: *** [Makefile:73: test] Error 1 #3124

valdar opened this issue Feb 19, 2025 · 1 comment

Comments

@valdar
Copy link

valdar commented Feb 19, 2025

Running make test on my environment results in:

15:37 $ make test
cd tools/setup-envtest && go test ./...
?   	sigs.k8s.io/controller-runtime/tools/setup-envtest	[no test files]
?   	sigs.k8s.io/controller-runtime/tools/setup-envtest/remote	[no test files]
ok  	sigs.k8s.io/controller-runtime/tools/setup-envtest/env	(cached)
ok  	sigs.k8s.io/controller-runtime/tools/setup-envtest/store	(cached)
ok  	sigs.k8s.io/controller-runtime/tools/setup-envtest/versions	(cached)
ok  	sigs.k8s.io/controller-runtime/tools/setup-envtest/workflows	(cached)
TRACE=1 ./hack/check-everything.sh
++ go mod edit -json
++ MODULES_ENABLED=0
++ MOD_OPT=
++ MODULES_OPT=
++ [[ -n '' ]]
++ NO_COLOR=
++ '[' -z '' ']'
++ header=''
++ reset=''
+ tmp_root=/tmp
+ kb_root_dir=/tmp/kubebuilder
++ make go-version
+ export 'GOTOOLCHAIN=gomake[1]: Entering directory '\''/home/valdar/projects/communityProjects/controller-runtime'\''
1.23.0
make[1]: Leaving directory '\''/home/valdar/projects/communityProjects/controller-runtime'\'''
+ GOTOOLCHAIN='gomake[1]: Entering directory '\''/home/valdar/projects/communityProjects/controller-runtime'\''
1.23.0
make[1]: Leaving directory '\''/home/valdar/projects/communityProjects/controller-runtime'\'''
+ ./hack/verify.sh
++ go mod edit -json
make: *** [Makefile:73: test] Error 1

I recon that the error is caused by the GOTOOLCHAIN being wrongly evaluated, in fact if I add the --silent option to these make invocations:

everything seems to work as expected.

@sbueringer
Copy link
Member

Feel free to open a PR

valdar added a commit to valdar/controller-runtime that referenced this issue Feb 19, 2025
valdar added a commit to valdar/controller-runtime that referenced this issue Feb 19, 2025
valdar added a commit to valdar/controller-runtime that referenced this issue Feb 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants