-
Notifications
You must be signed in to change notification settings - Fork 49
Unexpected keyword argument 'relative_to_caller_repository' #45
Comments
@jayconrod - Sorry for the delay. I will need to add a stub for this. We have plans to reimplement Skydoc in Java using the same Skylark interpreter, but for now, we need to manually add the Python stubs in Skydoc when new parameters and Skylark globals are added. For my understanding of your use case, can you please paste a code example showing how you are using Label with this parameter in your .bzl file? Thanks! |
Sure, we use this when defining a default label for an attribute used in most of our rules. See go/def.bzl:663. The idea is that every repository that declares Go rules must declare a |
Thanks! Just sent a pull request: #46 |
I'm interested in trying skydoc for github.com/bazelbuild/rules_go. Maybe we can generate part of our README.md from doc comments in our go/def.bzl file.
I imported Skydoc by adding this to WORKSPACE:
I added a BUILD file with this:
When I run
bazel build go:docs
, I get the following error:It looks like Skydoc isn't recognizing the
relative_to_caller_repository
keyword argument to Label. This is a documented parameter, but probably used infrequently. Maybe it would be better to ignore unknown parameters?The text was updated successfully, but these errors were encountered: