Skip to content

"generator_location" rule param should not be included in hash #141

@thirtyseven

Description

@thirtyseven

Rules generated by macros will automatically have a param like this:

  generator_location = "path/to/BUILD:107:12",

This means that the hash of a target generated by a macro will change whenever its line number changes, even if nothing changed that could affect the build. bazel-contrib/target-determinator currently handles this by redacting this parameter, it seems like bazel-diff should do the same.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions