-
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
NPE in implicit output pattern "%{x}" when x is a "zero" label attribute #5581
Labels
P2
We'll consider working on this in future. (Assignee optional)
team-Rules-API
API for writing rules/aspects: providers, runfiles, actions, artifacts
type: bug
Comments
Repro: sass.bzl def _sass_binary_impl(ctx): pass
sass_binary = rule(
implementation = _sass_binary_impl,
attrs = {
"src": attr.label(
mandatory = True,
single_file = True,
),
},
outputs = {"x": "%{src}.css"},
) BUILD
|
laurentlb
changed the title
NPE while parsing sass_binary rule
NPE in implicit output pattern "%{x}" when x is a "zero" label attribute
Jul 23, 2018
laurentlb
added
P1
I'll work on this now. (Assignee required)
team-Starlark
and removed
category: extensibility > skylark
labels
Nov 21, 2018
There's a proposal to remove this feature (https://docs.google.com/document/d/14A9HK8Jn2jErMayLEE3nrNJIxNfZWN_slFbhgtS6-aM/edit). |
Downgrading and sending for re-triage. |
laurentlb
added
P2
We'll consider working on this in future. (Assignee optional)
and removed
untriaged
labels
May 13, 2020
Sounds similar to #2766. |
brandjon
added
P4
This is either out of scope or we don't have bandwidth to review a PR. (No assignee)
team-Build-Language
and removed
P2
We'll consider working on this in future. (Assignee optional)
team-Starlark
labels
Feb 16, 2021
brandjon
added
untriaged
team-Rules-API
API for writing rules/aspects: providers, runfiles, actions, artifacts
and removed
team-Build-Language
labels
Nov 4, 2022
comius
added
P2
We'll consider working on this in future. (Assignee optional)
and removed
P4
This is either out of scope or we don't have bandwidth to review a PR. (No assignee)
untriaged
labels
Aug 22, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
P2
We'll consider working on this in future. (Assignee optional)
team-Rules-API
API for writing rules/aspects: providers, runfiles, actions, artifacts
type: bug
Attempting to use a
sass_binary()
rule, observing this error with 0.14.1, 0.15.0:Minimal repo example (for me) is the presence of any
sass_binary
rule in a BUILD file where the rule is missing the mandatory argumentsrc
:I tried to trace it back manually to see where the "rule" attribute map could be null, didn't think it could be. Maybe it's something about sass_binary is defnining outputs? https://github.com/bazelbuild/rules_sass/blob/master/sass/sass.bzl#L124
Adding a valid
src
attribute recovers bazel from the NPE, restoring expected/normal behaviour:The text was updated successfully, but these errors were encountered: