Skip to content

Commit

Permalink
WIP: Ignore location attribute
Browse files Browse the repository at this point in the history
Related Different workspaces produce different hashes #180
  • Loading branch information
tinder-maxwellelliott committed Jun 6, 2023
1 parent e226c1c commit 451babf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/src/main/kotlin/com/bazel_diff/bazel/BazelRule.kt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import com.google.devtools.build.lib.query2.proto.proto2api.Build
// Ignore generator_location when computing a target's hash since it is likely to change and does not
// affect a target's generated actions. Internally, Bazel also does this when computing a target's hash:
// https://github.com/bazelbuild/bazel/blob/6971b016f1e258e3bb567a0f9fe7a88ad565d8f2/src/main/java/com/google/devtools/build/lib/query2/query/output/SyntheticAttributeHashCalculator.java#L78-L81
private val IGNORED_ATTRS = arrayOf("generator_location")
private val IGNORED_ATTRS = arrayOf("generator_location", "location")

class BazelRule(private val rule: Build.Rule) {
val digest: ByteArray by lazy {
Expand Down

0 comments on commit 451babf

Please sign in to comment.