Skip to content

build: generate code and schemas at build time, stop committing them (part of #15298) - #15711

Merged
TrapsterDK merged 1 commit into
mainfrom
gen-not-committed
Dec 4, 2026
Merged

TrapsterDK merged 1 commit into
mainfrom
gen-not-committed

Conversation

@TrapsterDK

Copy link
Copy Markdown
Collaborator
  • Generated Rust tables (tools_gen.rs, runner tools_gen.rs, severity_gen.rs, curated_defaults_gen.rs) are build outputs now. The update_* targets and currency tests are gone. The two self-contained tables are small leaf crates (dx_tool_configs, quality_real_tools), because a generated src makes rules_rust relocate sibling sources and breaks their relative include_str!.
  • dx, security and license schemas are generated by genrules from the existing generators and shipped in release_artifacts. api/schemas.txt and its version-bump check are removed. Schema URLs in dx init output, security.toml, license.toml, docs and the root BUILD.bazel point to release assets.
  • The CycloneDX and SPDX upstream schemas are fetched by URL and sha256 through the sbom_schemas module extension (@dx_sbom_schemas).
  • cli/output/schema/events.schema.json stays committed because it is hand-written and has no generator. It is added to the release artifacts.

Cargo: the crates have Cargo.toml files only for dependency resolution, and there is no workspace manifest. Plain cargo and rust-analyzer will not see the generated modules.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Xut2hxb7tMzRqzVaKmAvVT

@TrapsterDK
TrapsterDK merged commit 22634de into main Dec 4, 2026
0 of 7 checks passed
@TrapsterDK
TrapsterDK deleted the gen-not-committed branch December 4, 2026 12:26
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