commit | 868d2877987632b515bc95f3355357a91226c704 | [log] [tgz] |
---|---|---|
author | Oliver Newman <olivernewman@google.com> | Wed Sep 13 16:19:24 2023 +0000 |
committer | CQ Bot <fuchsia-internal-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Sep 13 16:19:24 2023 +0000 |
tree | c68739dd49232d9066ca506bcbb6cedf959ed429 | |
parent | 45bc69f39a589772d50f112b8c3875b10e3ee935 [diff] |
[engine] Resolve symlinks in tests Fixes broken tests on Mac (Apple silicon only), where `t.TempDir()` returns a path under `/var`, which is a symlink to `/private/var`, as well as in Windows GitHub workflows where there's a similar link. Change-Id: I91b9723698749a6f231ed44e854d977236d5e9e3 Reviewed-on: https://fuchsia-review.googlesource.com/c/shac-project/shac/+/916072 Reviewed-by: Anthony Fandrianto <atyfto@google.com> Commit-Queue: Auto-Submit <auto-submit@fuchsia-infra.iam.gserviceaccount.com> Fuchsia-Auto-Submit: Oliver Newman <olivernewman@google.com>
Shac (Scalable Hermetic Analysis and Checks) is a unified and ergonomic tool and framework for writing and running static analysis checks.
Shac checks are written in Starlark.
go install go.fuchsia.dev/shac-project/shac@latest shac check shac doc shac.star | less
Planned features/changes, in descending order by priority:
shac.textproto
shac.star
files.shac
cache directory that checks can write toctx.scm
glob
arguments to ctx.scm.{all,affected}_files()
functions for easier filtering⚠ 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.