Skip to content

Different buildstamp behavior between genrule and cc_library. #1992

@PiotrSikora

Description

@PiotrSikora

It seems that genrule's bazel-out/volatile-status.txt and bazel-out/stable-status.txt retain all variables produced by workspace_status_command.

However, cc_library's build-info-volatile.h retains only:

#define BUILD_TIMESTAMP 1477468904621
#define BUILD_SCM_REVISION "0"
#define BUILD_SCM_STATUS ""

and build-info-nonvolatile.h retains only:

#define BUILD_EMBED_LABEL ""
#define BUILD_HOST "localhost"
#define BUILD_USER "me"

ignoring everything else.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3We're not considering working on this, but happy to review a PR. (No assignee)staleIssues or PRs that are stale (no activity for 30 days)team-Rules-CPPIssues for C++ rulestype: bug

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions