-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bazel hard crashes when 'inputs' argument to 'ctx.action' is a RuleConfiguredTarget #3714
Labels
P1
I'll work on this now. (Assignee required)
Comments
philwo
added
category: extensibility > skylark
P1
I'll work on this now. (Assignee required)
labels
Sep 11, 2017
working on this. |
It seems, that this CL introduced breakage in |
bazel-io
pushed a commit
that referenced
this issue
Sep 22, 2017
*** Reason for rollback *** Rolled back commit enforces stricter parameter checks. Will fix and roll forward This creates several failures on the nightly build of Bazel: ERROR: /home/ci/workspace/Global/rules_closure-node=linux-x86_64/closure/protobuf/test/BUILD:23:1: no such package '@com_google_protobuf_protoc//': Cannot convert parameter 'url' to type string or sequence of strings, in method download_and_extract(List, string, string, string, string) of 'repository_ctx' and referenced by '//closure/protobuf/test:example_proto_gen'. ERROR: Analysis of target '//closure/protobuf/test:example_lib' failed; build aborted: no such package '@com_google_protobuf_protoc//': Cannot convert parameter 'url' to type string or sequence of strings, in method download_and_extract(List, string, string, string, string) of 'repository_ctx'. *** Original change description *** Check parameter types for methods when multiple types are allowed. Fixes #3714 RELNOTES: None. PiperOrigin-RevId: 169669802
This was referenced Nov 29, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It looks like the code is assuming that any value that flows in has been checked by the
@Param
type, but that seems to not be the case.@Param
for the argument:bazel/src/main/java/com/google/devtools/build/lib/rules/SkylarkActionFactory.java
Lines 249 to 260 in 67f23f5
Where the cast happens:
bazel/src/main/java/com/google/devtools/build/lib/rules/SkylarkActionFactory.java
Lines 573 to 580 in 67f23f5
Error message:
Release 0.5.4
The text was updated successfully, but these errors were encountered: