-
-
Notifications
You must be signed in to change notification settings - Fork 662
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
Tests cannot transitively depend on library #2583
Comments
This example has a cyclic dependency, so it can't be built as-is.
Previously, before #2579 and rules_go 0.23.6, Just to compare
To avoid this issue, |
Marking this as a bug because the error message (
|
When the
go_default_test
of package A depends on a package B that depends on package A, rules_go removes the dependency of package B when compiling thego_default_test
, causing compilation error.What version of rules_go are you using?
0.23.6
What version of gazelle are you using?
0.21.1
What version of Bazel are you using?
3.3.0
Does this issue reproduce with the latest releases of all the above?
Yes
What operating system and processor architecture are you using?
Darwin amd64
Any other potentially useful information about your toolchain?
What did you do?
$ git clone git@github.com:linzhp/bazel_examples.git $ cd bazel_examples $ git checkout 0f6b7a28a4fbd62b1868e25815f8a230d39d2994 $ bazel build //imports:go_default_test
What did you expect to see?
Build completed successfully
What did you see instead?
The text was updated successfully, but these errors were encountered: