commit | 7f4d230a31cd822ede234294a4f6baac8ba6189f | [log] [tgz] |
---|---|---|
author | Oliver Newman <olivernewman@google.com> | Fri May 19 16:20:22 2023 +0000 |
committer | CQ Bot <fuchsia-internal-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri May 19 16:20:22 2023 +0000 |
tree | 9362c4554c4b1185fc7d2277a2ac714b40ab8fd7 | |
parent | e44257298eb6267c786af9374eeb12eb632edc1e [diff] |
[engine] Add `shac.check()` to create check objects `shac.register_check()` now takes either a check object or a function as its first argument. We're willing to diverge from the "one way to do things" policy in this case because it's annoying to add the boilerplate necessary to create a check object for registering just a simple check function. Unlike functions, check objects can have metadata (e.g. name) attached, which makes it easier to declare such metadata in shared libraries and use it in dependent repositories. Change-Id: I9a1a766b132b6a715be402a5360fb2d51bf05b16 Reviewed-on: https://fuchsia-review.googlesource.com/c/shac-project/shac/+/855976 Commit-Queue: Oliver Newman <olivernewman@google.com> Reviewed-by: Marc-Antoine Ruel <maruel@google.com>
Scalable Hermetic Analysis and Checks.
go install go.fuchsia.dev/shac-project/shac@latest shac check shac doc shac.star | less
⚠ The source of truth is at https://fuchsia.googlesource.com/shac-project/shac.git and uses Gerrit for code review.
See CONTRIBUTING.md to submit changes.