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

Remove GoSource/GoLibrary from test/binary rules #4044

Merged
merged 4 commits into from
Aug 16, 2024

Conversation

dzbarsky
Copy link
Contributor

@dzbarsky dzbarsky commented Aug 15, 2024

What type of PR is this?
Starlark cleanup

What does this PR do? Why is it needed?
We don't want go_binary or go_test targets to be included in deps or embed. We have a check for it today, but we can push this into the starlark type system by ensuring they don't have these providers.

Which issues(s) does this PR fix?

Fixes #

Other notes for review

@fmeum
Copy link
Member

fmeum commented Aug 15, 2024

I am concerned that this will make it more difficult for other rules to interop with Go rules. Could we instead make it so that go_binary doesn't emit any Go providers?

@DavidZbarsky-at
Copy link

I am concerned that this will make it more difficult for other rules to interop with Go rules. Could we instead make it so that go_binary doesn't emit any Go providers?

Yeah that's a fair concern. I think they are only emitted for gopackagesdriver, but perhaps we can make that work differently, I'll take a look

@dzbarsky dzbarsky changed the title Add marker provider for libraries Remove GoSource/GoLibrary from test/binary rules Aug 15, 2024
@dzbarsky
Copy link
Contributor Author

@fmeum ok I like your suggestion better, thanks. PTAL

@fmeum fmeum enabled auto-merge (squash) August 16, 2024 06:59
@fmeum fmeum merged commit 2d22666 into bazel-contrib:master Aug 16, 2024
2 checks passed
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.

3 participants