Skip to content

fix: propagate GO_TEST_FLAGS to both invocations in go.test.unit - #60

Open
erhancagirici wants to merge 1 commit into
crossplane:mainfrom
erhancagirici:fix-go-test-flags
Open

fix: propagate GO_TEST_FLAGS to both invocations in go.test.unit#60
erhancagirici wants to merge 1 commit into
crossplane:mainfrom
erhancagirici:fix-go-test-flags

Conversation

@erhancagirici

@erhancagirici erhancagirici commented Jul 26, 2026

Copy link
Copy Markdown

go test is invoked two times in go.test.unit target, but only the second invocation has GO_TEST_FLAGS propagated. Also pass for the first invocation to align both runs.

This causes test flags like -timeout to be ignored for the first run when provided via GO_TEST_FLAGS make variable.

Fixes #61

go test is invoked two times in `go.test.unit` target, but only the
second invocation has GO_TEST_FLAGS propagated. Also pass for the first
invocation.

Signed-off-by: Erhan Cagirici <erhan@upbound.io>
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

Successfully merging this pull request may close these issues.

GO_TEST_FLAGS is not propagated in go.test.unit target

1 participant