Skip to content
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

Propagate runfiles #27

Merged
merged 2 commits into from
Apr 18, 2022
Merged

Propagate runfiles #27

merged 2 commits into from
Apr 18, 2022

Conversation

alexeagle
Copy link
Member

Fixes #25

@@ -163,10 +163,14 @@ def _impl(ctx):
),
)

# See https://docs.bazel.build/versions/main/skylark/rules.html#runfiles
runfiles = ctx.runfiles(files = outputs + ctx.files.data)
runfiles = runfiles.merge_all([d[DefaultInfo].default_runfiles for d in ctx.attr.data])
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will it always have a DefaultInfo provider?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm, yes I think every rule does?

@alexeagle alexeagle merged commit bd16926 into main Apr 18, 2022
@alexeagle alexeagle deleted the i25 branch April 18, 2022 23:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Transitive dependencies aren't built with swc_transpiler
2 participants