[engine] add ctx.os.name, enable ctx.os.exec tests on Windows; fix license

Now all test cases pass on Windows. On POSIX, bash is used. On Windows,
batch files are used.

Fix license check for batch file comments which uses a "::" prefix.

Tested to work on Windows.

Change-Id: Ic8e2b9fc0379b55af68b9732121c68b4cda0e3c2
Reviewed-on: https://fuchsia-review.googlesource.com/c/shac-project/shac/+/859277
Commit-Queue: Auto-Submit <auto-submit@fuchsia-infra.iam.gserviceaccount.com>
Reviewed-by: Oliver Newman <olivernewman@google.com>
Fuchsia-Auto-Submit: Marc-Antoine Ruel <maruel@google.com>
11 files changed
tree: c0f85c14f679fa0c0eafa0fcc75da7eda57575c1
  1. .github/
  2. doc/
  3. internal/
  4. scripts/
  5. .gitignore
  6. AUTHORS
  7. check_doc.star
  8. codecov.yml
  9. CONTRIBUTING.md
  10. go.mod
  11. go.star
  12. go.sum
  13. LICENSE
  14. licenses.star
  15. main.go
  16. OWNERS
  17. PATENTS
  18. README.md
  19. shac.star
  20. shac.textproto
README.md

shac

Scalable Hermetic Analysis and Checks.

Usage

go install go.fuchsia.dev/shac-project/shac@latest
shac check
shac doc shac.star | less

Documentation

Contributing

⚠ 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.