bazel-skylib icon indicating copy to clipboard operation
bazel-skylib copied to clipboard

Common useful functions and rules for Bazel

Results 153 bazel-skylib issues
Sort by recently updated
recently updated
newest added

https://github.com/bazelbuild/bazel-skylib/issues/173

cla: yes

This is a function that we found ourselves needing sometimes.

cla: yes

Often writing macros is considered less effort than writing proper rules. Therefore, a lot of macros exists; unfortunately, in the presence of external repositories, dependencies on local tools cannot simply...

cla: yes

Hey @aiuto, @jin, @c-parsons, CC @jayconrod, I have been going through getting `bzl_library` targets added to a bunch of repos and I had a realization about it. I think there...

type: bug
P3

I don't have a clear proposal right now but wanted to put the request up to see if anyone else has thoughts or is interested. I would like to use...

type: feature request
P3

Hi dear Skylib maintainers, right now we print the assertion error with the location `.../external/bazel_skylib/lib/unittest.bzl:351:10:`. It would be much more useful if we either printed the entire stack trace, or...

type: feature request
P3

This would allows for `genrule` and friends to consume args as templates, for instance: ```python load("@bazel_skylib//rules:common_settings.bzl", "string_flag") string_flag( name = "myflag", ) genrule( name = "myrule", outs = ["value.txt"], cmd...

This should be `setting !=`, not `settings` which will never match the string. https://github.com/bazelbuild/bazel-skylib/blob/dc080e95161964a1ff841bfd0b871a1123c027a8/lib/selects.bzl#L141 More context: ``` for setting in settings: if settings != "//conditions:default": new_settings.append(setting) ``` This should've been...

I have a minimal reproduction repo here: https://github.com/dgp1130/skylib-test-eval. (I'm using Linux. Windows may or may not reproduce.) TL;DR: Using `analysistest` to assert on an error message containing backticks will evaluate...

It would be great if skylib had a rule similar to `copy_file` that, instead of manually copying the file, uses `ctx.actions.symlink` (since Bazel 3.2). This could be either implemented as...