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

set importpath go_test rules #1779

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

scaiper
Copy link
Contributor

@scaiper scaiper commented Apr 9, 2024

What type of PR is this?

Feature

What package or component does this PR mostly affect?

language/go

What does this PR do? Why is it needed?

This PR enables specifying of importpath in go_test targets which have sources and lack embedded library from which it could be infered.
This is needed for gopackagesdriver in rules_go to provide correct PkgPath to IDE.

Which issues(s) does this PR fix?

Fixes #1778

Other notes for review

Copy link
Collaborator

@fmeum fmeum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@linzhp
Copy link
Contributor

linzhp commented Apr 14, 2024

Let's check with @JamyDev to see if there are other options for #1778 . Adding importpath to all go_test targets would trigger huge migrations in large repos.

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.

'invalid use of internal package' in IDE in external tests
3 participants