Skip to content

fix: normalize contract adoption paths - #720

Merged
kvlonge merged 1 commit into
mainfrom
fix/contract-adoption-paths
Sep 18, 2026
Merged

kvlonge merged 1 commit into
mainfrom
fix/contract-adoption-paths

Conversation

@kvlonge

@kvlonge kvlonge commented Sep 18, 2026 •

Copy link
Copy Markdown
Contributor

Why

Relative project directories changed declaration consumer paths and made valid private macros appear inaccessible. Contract generation also rejected valid YAML where source column sequences used indentless list syntax.

Changes

  • normalize explicit project directories before command dispatch so relative paths retain declaration scope ownership
  • support valid indentless YAML sequences when updating source contract columns
  • preserve existing source and column metadata while adding physical types and missing columns

Verification

  • uv sync --all-extras
  • uv run pytest tests/integration/src/sqlbuild/cli/commands/main/test_compile.py tests/integration/src/sqlbuild/cli/commands/main/test_contract_command.py -n auto --dist loadfile (16 passed)
  • make check-ci
  • cache-free static compile of a downstream 974-model project through a relative --project-dir (0 errors, 0 warnings)
  • public repository hygiene scan

@kvlonge
kvlonge enabled auto-merge (squash) September 18, 2026 03:37
@kvlonge
kvlonge merged commit 2c4e160 into main Sep 18, 2026
18 of 19 checks passed
@kvlonge
kvlonge deleted the fix/contract-adoption-paths branch September 18, 2026 03:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant