internal/unify: add !import nodes

The new "!import pattern" node can be used to import other YAML files
using a glob pattern.

Each file gets its own variable scope ($x in one file is not the same
as $x in another file), and we protect against paths that reference
files above the current file.

Change-Id: Ib479aa16f0979c3b9060d63320aa3505f72b1ff1
Reviewed-on: https://go-review.googlesource.com/c/arch/+/693342
Auto-Submit: Austin Clements <austin@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Junyang Shao <shaojunyang@google.com>
3 files changed
tree: d202bf8da25f4d1bc852d9c69b784ca787b50ec5
  1. arm/
  2. arm64/
  3. internal/
  4. loong64/
  5. ppc64/
  6. riscv64/
  7. s390x/
  8. x86/
  9. codereview.cfg
  10. CONTRIBUTING.md
  11. go.mod
  12. go.sum
  13. LICENSE
  14. PATENTS
  15. README.md
README.md

arch

Go Reference

This repository holds machine architecture information used by the Go toolchain. The parts needed in the main Go repository are copied in.

Report Issues / Send Patches

This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://go.dev/doc/contribute.

The git repository is https://go.googlesource.com/arch.

The main issue tracker for the arch repository is located at https://go.dev/issues. Prefix your issue with “x/arch:” in the subject line, so it is easy to find.