bazel icon indicating copy to clipboard operation
bazel copied to clipboard

ctx.runfiles.symlinks returns a set of not allowed Skylark values

Open hhclam opened this issue 10 years ago • 0 comments

https://github.com/bazelbuild/bazel/blob/master/src/main/java/com/google/devtools/build/lib/analysis/Runfiles.java#L317 @SkylarkCallable(name = "symlinks", doc = "Returns the set of symlinks", structField = true) public NestedSet getSymlinks() { return symlinks; }

In the above file ctx.runfiles().symlinks returns a set of SymlinkEntry but it is not an allowed Skylark value. Probably just need some annotations for SymlinkEntry to enable the translation to skylark: https://github.com/bazelbuild/bazel/blob/master/src/main/java/com/google/devtools/build/lib/analysis/Runfiles.java#L109

hhclam avatar Mar 31 '16 18:03 hhclam