Skip to content

Ask Bazel for the hash of a target artifact, but not the artifact itself? #23770

Answered by meisterT
njlr asked this question in Q&A
Discussion options

You must be logged in to vote

The label is also in the BEP, see:

$ cat /tmp/bep.json | jq 'select(.id | contains({"targetCompleted": {}}) )'
{
  "id": {
    "targetCompleted": {
      "label": "//src:bazel",
      "configuration": {
        "id": "7616bb24256a7f1bcce75764003040f2718e80f7f62d87bca6d909590fb4383a"
      }
    }
  },
  "completed": {
    "success": true,
    "outputGroup": [
      {
        "name": "default",
        "fileSets": [
          {
            "id": "0"
          }
        ]
      }
    ],
    "importantOutput": [
      {
        "name": "src/bazel",
        "uri": "bytestream://remotebuildexecution.googleapis.com/projects/bazel-untrusted/instances/default_instance/blobs/7a817ce9b686a93878f15a…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@njlr
Comment options

@meisterT
Comment options

Answer selected by njlr
@njlr
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants