This repository has been archived by the owner on Nov 10, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Cell name is lost in buck audit classpath --dot
output
#656
Comments
lucamilanesio
pushed a commit
to GerritCodeReview/gerrit
that referenced
this issue
Feb 16, 2016
Due to Buck bug: [1] root cell name is neither preserved nor resolved in `buck audit classpath --dot` output and thus cannot be passed to Buck again. Add a hack and help Buck for now until the bug is fixed. * [1] facebook/buck#656 Change-Id: I5973c1c7d81e51ba882c1f10658237a4c8e6a642
Thanks for the detailed report! The output of the --dot command is intended to be used by the graphviz tool or humans, not fed back into buck. Also, "surprise!" the --dot option does something different than the --json option (look at AuditClasspathCommand, if you pass in --dot it actually inspects the TargetGraph, not the ActionGraph). The way we handle cells in the two graphs slightly differs but that does look a bit bogus. I don't think anyone will look at this any time soon though. |
Thanks for the clarification. Have i got it right, that a diff fixing the output for the same option ( |
lucamilanesio
pushed a commit
to GerritCodeReview/gerrit
that referenced
this issue
Apr 20, 2016
Cross cell support in Buck is considered as experimental feature, with number of open issues: [1], [2], [3]. Moreover, to make Maven Central machinery work, it was needed to create symbolic links in source tree. That broke `buck targets` feature. Remove it for now, and re-consider to add it later. [1] facebook/buck#656 [2] facebook/buck#658 [3] facebook/buck#717 Bug: Issue 3954 Change-Id: Ic621a07771f926001df181b46b2169e214ce208a
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Am I right in assuming that
buck audit classpath --dot
output should be able to be used as input to Buck? At least it works like this until cell based targets are used. In this case the cell root is just omitted and the target is rellocated to the cell root.Note, that the same command without --dot option produces the correct output file name for cell based rules.
Example:
Rule name in jgit cell, that is located under
gerrit/lib/jgit
:And is consumed by other rules as:
@jgit//:jgit
. So the output ofbuck audit
is:I would expect that the the cell name @JGit either preserved or replaced with its current location, so that it can be feed again to Buck:
But:
The text was updated successfully, but these errors were encountered: