generated from bazel-contrib/rules-template
-
-
Notifications
You must be signed in to change notification settings - Fork 61
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
[Bug]: .ts source file labels produce invalid predeclared outputs unless they are bare #584
Labels
bug
Something isn't working
Comments
jbedard
added a commit
to jbedard/rules_ts
that referenced
this issue
Apr 11, 2024
jbedard
changed the title
[Bug]: targets specified as ts_project(srcs) cause errors
[Bug]: targets with .ts extensions specified as ts_project(srcs) cause errors
Apr 11, 2024
alexeagle
changed the title
[Bug]: targets with .ts extensions specified as ts_project(srcs) cause errors
[Bug]: .ts source file labels produce invalid predeclared outputs unless they are bare
Apr 11, 2024
The correct answer here has to be to preserve what users understand as Label semantics, which is that
So we should simply normalize the syntax before computing the out_path. |
alexeagle
added a commit
that referenced
this issue
Apr 11, 2024
jbedard
added a commit
to jbedard/rules_ts
that referenced
this issue
Apr 11, 2024
jbedard
added a commit
to jbedard/rules_ts
that referenced
this issue
Apr 11, 2024
jbedard
added a commit
to jbedard/rules_ts
that referenced
this issue
Apr 11, 2024
jbedard
added a commit
to jbedard/rules_ts
that referenced
this issue
Apr 11, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What happened?
If labels such as
srcs = ["@//path/to:a.ts", "//path/to:b.ts", ":c.ts", "d.ts"]
are specified in
ts_project(srcs)
then the pre-declared outputs are invalid, and fail with an error likeVersion
Development (host) and target OS/architectures:
Output of
bazel --version
:Version of the Aspect rules, or other relevant rules from your
WORKSPACE
orMODULE.bazel
file:Language(s) and/or frameworks involved:
How to reproduce
The text was updated successfully, but these errors were encountered: