Closed antspy closed 3 weeks ago
Can you test with this change and see if it unblocks you? https://github.com/Tinder/bazel-diff/pull/246
I was using the 8.1.1 release, so the fix was already being used.
Turns out if I use bazel run //:bazel-diff -- generate-hashes ...
it works as expected. If I try to instead use the script:
bazel run //:bazel-diff --script_path=${path}
${path} generate-hashes ...
then it hangs forever! No idea why - but I just switched to using bazel run
directly.
Thank you! :)
Hi,
The lib looks really cool, thanks for sharing! But I am having trouble getting this to work - it seems like it hangs forever whatever I do :)
I downloaded the java binary and I am running it as so:
java -jar bazel-diff.jar generate-hashes -v --excludeExternalTargets --includeTargetType -co --noimplicit_deps -w /workspaces/myrepo -m tmp.txt
Thanks to
-v
, I see the output:This hangs forever. I see that it's trying to query all targets, which is slow, but not that slow, especially as I pass the
noimplicit_deps
flag. In fact, if I run it myself:bazel query //...:all-targets --noimplicit_deps
it takes around 10 seconds.I have tried many things:
--excludeExternalTargets
and--includeTargetType
options make no difference. The output is the same, it says[Info] Executing Query: '//...:all-targets'
and hangs forever.-m
makes no difference. The output is the same, it says[Info] Executing Query: '//...:all-targets'
and hangs forever.bazel query //src/...:all-targets --noimplicit_deps
) but I don't seem to find an option to make this happen.//node_modules
). I am not sure how the code recognizes 'external targets', and I don't get how to modify it.Would really appreciate any help here! I would love to be able to use this :)