diff options
author | 2017-01-26 16:13:39 +0000 | |
---|---|---|
committer | 2017-01-26 23:00:38 +0000 | |
commit | 1429ca95cc5640acc5767457092c60b7fed7debc (patch) | |
tree | dc01d686b02743e1da315fcc6981c7a0b1b09553 /src/main/java/com/google/devtools/build/lib/skyframe/RepositoryValue.java | |
parent | 8d2c1660560bd4a04a0104e3af3381a9a74ea1f2 (diff) |
Add dependency for external files to the corresponding RepositoryDirectoryValue
Previously we were adding a dependency to the rule itself, however the repository
itself can depends on further dependencies (environment, template files, ...) with
Skylark repositories. Not invalidating when those change was causing weird invalidation
issues that were shown with the invalidation on environment (basically a refetch of
the repository on environment invalidation would not cause an invalidation of the
corresponding package, the next call would not have invalidation of the repository
but would see the change in the build files...).
--
Change-Id: I8945d9885e6390734ba02ccc6c3c6ca639fcec35
Reviewed-on: https://cr.bazel.build/8137
PiperOrigin-RevId: 145675258
MOS_MIGRATED_REVID=145675258
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/skyframe/RepositoryValue.java')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/skyframe/RepositoryValue.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/skyframe/RepositoryValue.java b/src/main/java/com/google/devtools/build/lib/skyframe/RepositoryValue.java index a33e4e037e..cc055ab512 100644 --- a/src/main/java/com/google/devtools/build/lib/skyframe/RepositoryValue.java +++ b/src/main/java/com/google/devtools/build/lib/skyframe/RepositoryValue.java @@ -62,7 +62,7 @@ public class RepositoryValue implements SkyValue { return Objects.hashCode(repositoryName, repositoryDirectory); } - static SkyKey key(RepositoryName repositoryName) { + public static SkyKey key(RepositoryName repositoryName) { return SkyKey.create(SkyFunctions.REPOSITORY, repositoryName); } } |