mirror of
https://github.com/nolen777/eagle0.git
synced 2026-07-28 21:35:42 +00:00
* Add BUILD.bazel dependency linting Adds tooling to enforce architectural boundaries in the codebase: 1. Shell script `scripts/check_build_deps.sh` with multiple modes: - Default: runs all checks and shows dependency counts - --ci: fails only on hard violations (src/main depends on src/test) - --strict: also fails if proto deps in library/ increase from baseline - --count: just show current dependency counts - --update-baseline: update the baseline file for tracking 2. Bazel test `//:build_deps_test` for integration with test suite 3. Baseline file `scripts/build_deps_baseline.txt` tracking proto dep count Current enforced rules: - src/main must not depend on src/test (enforced now) - library/ proto dependencies tracked (167 currently, deproto in progress) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * Update DEPROTO_PLAN.md with accurate proto import inventory The previous status was inaccurate. This update: - Corrects summary table: Availability, Command Choice Helpers, and other utilities still have Hostility proto imports - Adds Phase 8b documenting Hostility proto migration (4 files) - Updates detailed inventory showing actual 13 files with direct proto imports (vs 167 transitive deps from bazel query) - Corrects success criteria checkboxes to reflect actual status - Documents the grep command used to verify imports The 167 proto deps from bazel query are transitive dependencies. Only 13 files have direct proto imports: - 5 boundary files (expected to keep proto) - 4 files using Hostility proto (Phase 8b) - 4 LLM prompt generator files (Phase 8) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
47 lines
1002 B
Python
47 lines
1002 B
Python
load("@bazel_gazelle//:def.bzl", "gazelle")
|
|
load("@io_bazel_rules_go//go:def.bzl", "nogo")
|
|
|
|
package(default_visibility = ["//visibility:public"])
|
|
|
|
# Platform for cross-compiling to Linux x86_64
|
|
platform(
|
|
name = "linux_x86_64",
|
|
constraint_values = [
|
|
"@platforms//os:linux",
|
|
"@platforms//cpu:x86_64",
|
|
],
|
|
)
|
|
|
|
# Platform for cross-compiling to Linux ARM64
|
|
platform(
|
|
name = "linux_arm64",
|
|
constraint_values = [
|
|
"@platforms//os:linux",
|
|
"@platforms//cpu:aarch64",
|
|
],
|
|
)
|
|
|
|
gazelle(name = "gazelle")
|
|
|
|
# gazelle:proto file
|
|
# gazelle:prefix github.com/nolen777/eagle0
|
|
# gazelle:exclude .ijwb
|
|
|
|
nogo(
|
|
name = "my_nogo",
|
|
vet = True,
|
|
visibility = ["//visibility:public"],
|
|
)
|
|
|
|
# Dependency constraint tests
|
|
# These verify architectural boundaries are maintained
|
|
sh_test(
|
|
name = "build_deps_test",
|
|
srcs = ["scripts/check_build_deps.sh"],
|
|
args = ["--ci"],
|
|
tags = [
|
|
"local", # Needs bazel query access
|
|
"no-sandbox",
|
|
],
|
|
)
|