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

New config option testbuildonly #16

Open
wants to merge 1 commit into
base: release-0.40
Choose a base branch
from

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