p.s. The skylark references link is 404ing: https://bazel.build/versions/master/docs/skylark-overview.html
Say I'm in the implementation= part of a skylark rule, and I've got a bunch of files via ctx.files.<attr>. Is there an easy way to glob through these files? I'm trying to avoid having to write my own glob function that iterates over each File's file.path. I feel like there's just a utility function I'm missing somewhere...
p.s. The skylark references link is 404ing: https://bazel.build/versions/master/docs/skylark-overview.html
--
You received this message because you are subscribed to the Google Groups "bazel-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/6447ce37-932e-488c-92bf-c3d8253eaef6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
What are you trying to do exactly? Because ctx.files.<attr> should already returns you an iterable with the list of files in it, what would you want more?About the PS: https://bazel.build/versions/master/docs/skylark/concepts.html <-- this is the correct skylark overview, where did you found the other link?
On Tue, Mar 7, 2017 at 9:33 AM <tim.b...@gmail.com> wrote:
Say I'm in the implementation= part of a skylark rule, and I've got a bunch of files via ctx.files.<attr>. Is there an easy way to glob through these files? I'm trying to avoid having to write my own glob function that iterates over each File's file.path. I feel like there's just a utility function I'm missing somewhere...
p.s. The skylark references link is 404ing: https://bazel.build/versions/master/docs/skylark-overview.html
--
You received this message because you are subscribed to the Google Groups "bazel-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discuss+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/6447ce37-932e-488c-92bf-c3d8253eaef6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "bazel-discuss" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/CAN3hOS_90MiPnxGpZGt2ZHUXmxKZoMej3O6h9NyJq7SEfXhxkQ%40mail.gmail.com.To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discuss+unsubscribe@googlegroups.com.
I am guessing you want a regexp over file names in rule implementation? We do not have regexps but that would be a valid feature request.Filed https://github.com/bazelbuild/bazel/issues/2643 for broken 'Extensions | Reference' link on the NavBar (I am guessing that is how you git that url)
--On Tue, Mar 7, 2017 at 9:54 AM, 'Damien Martin-guillerez' via bazel-discuss <bazel-discuss@googlegroups.com> wrote:What are you trying to do exactly? Because ctx.files.<attr> should already returns you an iterable with the list of files in it, what would you want more?About the PS: https://bazel.build/versions/master/docs/skylark/concepts.html <-- this is the correct skylark overview, where did you found the other link?On Tue, Mar 7, 2017 at 9:33 AM <tim.b...@gmail.com> wrote:Say I'm in the implementation= part of a skylark rule, and I've got a bunch of files via ctx.files.<attr>. Is there an easy way to glob through these files? I'm trying to avoid having to write my own glob function that iterates over each File's file.path. I feel like there's just a utility function I'm missing somewhere...
p.s. The skylark references link is 404ing: https://bazel.build/versions/master/docs/skylark-overview.html
--
You received this message because you are subscribed to the Google Groups "bazel-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discuss+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/6447ce37-932e-488c-92bf-c3d8253eaef6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/CAN3hOS_90MiPnxGpZGt2ZHUXmxKZoMej3O6h9NyJq7SEfXhxkQ%40mail.gmail.com.--
You received this message because you are subscribed to the Google Groups "bazel-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discuss+unsubscribe@googlegroups.com.Google Germany GmbHErika-Mann-Straße 33, 80636 München, Germany
I am guessing you want a regexp over file names in rule implementation? We do not have regexps but that would be a valid feature request.Filed https://github.com/bazelbuild/bazel/issues/2643 for broken 'Extensions | Reference' link on the NavBar (I am guessing that is how you git that url)On Tue, Mar 7, 2017 at 9:54 AM, 'Damien Martin-guillerez' via bazel-discuss <bazel-...@googlegroups.com> wrote:
What are you trying to do exactly? Because ctx.files.<attr> should already returns you an iterable with the list of files in it, what would you want more?About the PS: https://bazel.build/versions/master/docs/skylark/concepts.html <-- this is the correct skylark overview, where did you found the other link?
On Tue, Mar 7, 2017 at 9:33 AM <tim.b...@gmail.com> wrote:
Say I'm in the implementation= part of a skylark rule, and I've got a bunch of files via ctx.files.<attr>. Is there an easy way to glob through these files? I'm trying to avoid having to write my own glob function that iterates over each File's file.path. I feel like there's just a utility function I'm missing somewhere...
p.s. The skylark references link is 404ing: https://bazel.build/versions/master/docs/skylark-overview.html
--
You received this message because you are subscribed to the Google Groups "bazel-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/6447ce37-932e-488c-92bf-c3d8253eaef6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "bazel-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/CAN3hOS_90MiPnxGpZGt2ZHUXmxKZoMej3O6h9NyJq7SEfXhxkQ%40mail.gmail.com.--Google Germany GmbHErika-Mann-Straße 33, 80636 München, Germany
--
You received this message because you are subscribed to the Google Groups "bazel-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/CAObu7DFeM1KkxbsF9MjBz7%2BpjzUHnR9uOG-GoqOtYOz5U1WOjQ%40mail.gmail.com.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discuss+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/b1d2091a-bf72-40db-86e8-341fd159e58e%40googlegroups.com.