[engine] Improve Recurse mode

When loading a shac.star from a subdirectory, properly name it with
regards to the subdirectory it is in.

This will later enable loading common starlark code from an adjacent
directory.

The main visible side effect is that the print() statements now contain
the subdirectory name when recursing.

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