aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/packages/Package.java
diff options
context:
space:
mode:
authorGravatar Damien Martin-Guillerez <dmarting@google.com>2016-02-17 21:46:22 +0000
committerGravatar Damien Martin-Guillerez <dmarting@google.com>2016-02-17 22:53:57 +0000
commit653df8813dd74042e8e084eeae238a8b9f16a3ca (patch)
tree95457f3f31e6179ae697abab81df3f3d0271881d /src/main/java/com/google/devtools/build/lib/packages/Package.java
parent8af7f68e056ce2013302a4d54c3b2a76b3130ce8 (diff)
Introduce SkylarkRepositoryModule
The SkylarkRepositoryModule declare the `repository_rule` function to Skylark to define new remote repository types (http://goo.gl/OZV3o0). The work is delagated to the `SkylarkRepositoryFunction` by the `RepositoryDelegatorFunction`. `SkylarkRepositoryContext` defines the `ctx` object passed to the `repository_rule` implementation function. This change also introduce a `SkylarkPath` and the necessary methods in `SkylarkRepositoryContext` to showcase the creation of a `local_repository` like repository. Issue #893: step 3 of the roadmap http://goo.gl/OZV3o0. -- MOS_MIGRATED_REVID=114895003
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/packages/Package.java')
-rw-r--r--src/main/java/com/google/devtools/build/lib/packages/Package.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/packages/Package.java b/src/main/java/com/google/devtools/build/lib/packages/Package.java
index e01787adbb..1776ed6626 100644
--- a/src/main/java/com/google/devtools/build/lib/packages/Package.java
+++ b/src/main/java/com/google/devtools/build/lib/packages/Package.java
@@ -1294,7 +1294,7 @@ public class Package {
return pkg;
}
- protected ExternalPackageBuilder externalPackageData() {
+ public ExternalPackageBuilder externalPackageData() {
return externalPackageData;
}