[engine] Fix when root contains a symlink or on Windows

git returns the resolved path on macOS. Inconsistent path casing may
make behavior incorrect fail on both Windows and macOS.

Fix test when git bash environment is not available on Windows.

Document which path should be in which style (native or POSIX).

Change-Id: I27492abfe222f8492c96d74e00de51536256e55d
Reviewed-on: https://fuchsia-review.googlesource.com/c/shac-project/shac/+/836341
Reviewed-by: Oliver Newman <olivernewman@google.com>
Commit-Queue: Auto-Submit <auto-submit@fuchsia-infra.iam.gserviceaccount.com>
Fuchsia-Auto-Submit: Marc-Antoine Ruel <maruel@google.com>
2 files changed
tree: 9f4a7768b41838cc18683e5d60a167f28180f519
  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
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.