You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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:
Adding or removing the --excludeExternalTargets and --includeTargetType options make no difference. The output is the same, it says [Info] Executing Query: '//...:all-targets' and hangs forever.
Adding or removing the modified filepaths option: -m makes no difference. The output is the same, it says [Info] Executing Query: '//...:all-targets' and hangs forever.
I am trying to find a way to build all targets within a directory (equivalent to bazel query //src/...:all-targets --noimplicit_deps) but I don't seem to find an option to make this happen.
Alternatively, would be nice to be able remove some directories from consideration (e.g. //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 :)
The text was updated successfully, but these errors were encountered:
antspy
changed the title
Command hands on bazel query
Command hangs on bazel query
Oct 30, 2024
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 :)
The text was updated successfully, but these errors were encountered: