-
-
Notifications
You must be signed in to change notification settings - Fork 678
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
Some packages seem to be recompiled unnecessarily for coverage #2693
Comments
I think by default,
|
Due to bazelbuild/bazel#11971, the default
In this case, |
Hmm, I'm not sure what would cause that then. rules_go uses Assuming it returns |
|
bazel coverage
shouldn't need to recompile packages that don't need coverage instrumentation. For some packages, this is not the case. The recompilation also changes the__.PKGDEF
fileWhat version of rules_go are you using?
0.24.4
What version of gazelle are you using?
0.22.0
What version of Bazel are you using?
3.6.0
Does this issue reproduce with the latest releases of all the above?
Yes
What operating system and processor architecture are you using?
Darwin and Linux, amd64
What did you do?
$ git clone git@github.com:linzhp/bazel_examples.git $ cd bazel_examples $ bazel build //sqlite:go_default_library $ bazel coverage --profile=/tmp/profile.json sqlite:go_default_test $ bazel analyze-profile /tmp/profile.json
What did you expect to see?
No recompilation needed for
external/com_github_mattn_go_sqlite3/go-sqlite3.a
, so the actionGoCompilePkg external/com_github_mattn_go_sqlite3/go-sqlite3.a
should a take very short time.What did you see instead?
The text was updated successfully, but these errors were encountered: