Skip to content

Conversation

@knz
Copy link

@knz knz commented Aug 11, 2023

When this option is specified, all targets with a name matching *_test only get their dependencies built, but are not linked.

This is intended to validate source code validity for tests without incurring the cost of linking.

This patch uses a new option (as opposed to overloading linkmode) because it needs to affect only the _test targets; not all targets.

When this option is specified, all targets with a name matching
`*_test` only get their dependencies built, but are not linked.

This is intended to validate source code validity for tests without
incurring the cost of linking.

This patch uses a new option (as opposed to overloading `linkmode`)
because it needs to affect only the `_test` targets; not all targets.
@knz knz changed the title New config option testbuildonly New config option testbuildonly Aug 11, 2023
knz added a commit to knz/cockroach that referenced this pull request Aug 11, 2023
When specified, only the dependencies of test targets (including the
test sources) are compiled; the test executables themselves are not
linked.

This change depends on cockroachdb/rules_go#16.

Release note: None
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.

1 participant