commit | 5173251d2d06518fe01cd0a99cff70261e41053c | [log] [tgz] |
---|---|---|
author | Oliver Newman <olivernewman@google.com> | Fri Aug 18 14:44:33 2023 +0000 |
committer | CQ Bot <fuchsia-internal-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Aug 18 14:44:33 2023 +0000 |
tree | 4826a1d5130bc1942c0e22908670562e39cb280b | |
parent | ab2e3b48079abef1b68dc1b95f22cf3e4db5e611 [diff] |
[engine] Fix tests under go1.21 In go1.21, `go run` prints a warning if `GOROOT` and `GOPATH` are equal, even if they're both empty: warning: GOPATH set to GOROOT () has no effect This breaks tests that assume `go run` won't print anything besides the output of the Go file being run. To fix that, explicitly set the `GOPATH` env var. Change-Id: I9796a93802db5a20159beecebe16da23bee3aa8d Reviewed-on: https://fuchsia-review.googlesource.com/c/shac-project/shac/+/904658 Commit-Queue: Auto-Submit <auto-submit@fuchsia-infra.iam.gserviceaccount.com> Reviewed-by: Mahesh Saripalli <maheshsr@google.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.