refactor(platform/bootstrap): selective imports + drop 3 dead imports (ADR-025 L2)
bootstrap.nu had 5 star-imports. Body scan showed only 2 of the 5 files contributed any used symbols: config/accessor.nu -> config-get services/health.nu -> wait-for-service The other 3 files were imported with `use X *` but supplied zero used symbols — dead imports inherited from an earlier architecture: utils/logging.nu (0 used) dropped services/lifecycle.nu (0 used) dropped services/dependencies.nu (0 used) dropped All imports now use absolute paths from nulib/ root. Existing selective imports (context_manager, setup/mod, nickel_processor) kept as-is and promoted to absolute paths for consistency with ADR-025 rule. Validation: nu --ide-check 50 platform/bootstrap.nu -> 0 errors Refs: ADR-025, .coder/benchmarks/phase2-transitivity.md Layer 2
This commit is contained in:
parent
4b95148324
commit
e4fe2298f8
1 changed files with 9 additions and 8 deletions
|
|
@ -2,14 +2,15 @@
|
||||||
# Ensures critical platform services are running before executing provisioning tasks
|
# Ensures critical platform services are running before executing provisioning tasks
|
||||||
# Infrastructure-agnostic: supports Docker, Kubernetes, remote servers, etc.
|
# Infrastructure-agnostic: supports Docker, Kubernetes, remote servers, etc.
|
||||||
|
|
||||||
use ../config/accessor.nu *
|
# Selective imports — absolute paths (ADR-025 Phase 3 Layer 2).
|
||||||
use ../config/context_manager.nu [get-active-workspace]
|
# 5 former star-imports reduced to 2 selective imports. The other 3
|
||||||
use ../setup/mod.nu [get-config-base-path]
|
# (utils/logging.nu, services/lifecycle.nu, services/dependencies.nu) had
|
||||||
use ../utils/logging.nu *
|
# zero used symbols in this file — they were dead imports.
|
||||||
use ../utils/nickel_processor.nu [ncl-eval-soft]
|
use lib_provisioning/config/accessor/core.nu [config-get]
|
||||||
use ../services/health.nu *
|
use lib_provisioning/config/context_manager.nu [get-active-workspace]
|
||||||
use ../services/lifecycle.nu *
|
use lib_provisioning/setup/mod.nu [get-config-base-path]
|
||||||
use ../services/dependencies.nu *
|
use lib_provisioning/utils/nickel_processor.nu [ncl-eval-soft]
|
||||||
|
use lib_provisioning/services/health.nu [wait-for-service]
|
||||||
|
|
||||||
# Load service deployment configuration
|
# Load service deployment configuration
|
||||||
def get-service-config [service_name: string] {
|
def get-service-config [service_name: string] {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue