Open yunjiz opened 4 years ago
Is there any progress of this bug?
@weixiao-huang No update
We ran into the same problem in our monorepo at Uber ATG. We've had to work around it by using select
on a condition to disable nogo
checks in coverage mode.
What version of rules_go are you using?
v0.19.5
What version of gazelle are you using?
N/A
What version of Bazel are you using?
0.27.1
Does this issue reproduce with the latest releases of all the above?
Yes
What operating system and processor architecture are you using?
darwin18.0 Intel(R) Core(TM) i7-7920HQ CPU @ 3.10GHz
Any other potentially useful information about your toolchain?
What did you do?
I have create a simple repo for repro: https://github.com/Yunji-Leo/ReproNOGO
bazel coverage
does not respect "exclude_files" in nogo config if "only_files" is not defined. Howeverbazel build
andbazel test
works fine.run
bazel coverage src/demo/...
What did you expect to see?
build successful
What did you see instead?
note in nogo.json, "unreachable" is excluded from entire "src/"