Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -1141,7 +1141,7 @@ json_schema(
name = "dx_schema",
src = "//cli/dx_config:schema/dx.schema.json",
files = [],
url = "https://raw.githubusercontent.com/devhusdk/rules_dx/main/cli/dx_config/schema/dx.schema.json",
url = "https://github.com/devhusdk/rules_dx/releases/latest/download/dx.schema.json",
)

json_schema(
Expand All @@ -1150,7 +1150,7 @@ json_schema(
files = [
"security.toml",
],
url = "https://raw.githubusercontent.com/devhusdk/rules_dx/main/cli/audit/schema/security.schema.json",
url = "https://github.com/devhusdk/rules_dx/releases/latest/download/security.schema.json",
)

json_schema(
Expand All @@ -1159,7 +1159,7 @@ json_schema(
files = [
"license.toml",
],
url = "https://raw.githubusercontent.com/devhusdk/rules_dx/main/cli/audit/schema/license.schema.json",
url = "https://github.com/devhusdk/rules_dx/releases/latest/download/license.schema.json",
)

json_schemas(
Expand Down
3 changes: 3 additions & 0 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -772,6 +772,9 @@ dx_licenses_dev.accept(ids = [
"windows-sdk-buildtools",
])

sbom_schemas = use_extension("//cli/sbom/schema:extensions.bzl", "sbom_schemas")
use_repo(sbom_schemas, "dx_sbom_schemas")

inventory_texts = use_extension("//deploy/private/release:inventory_texts.bzl", "inventory_texts", dev_dependency = True)
use_repo(inventory_texts, "dx_inventory_texts")

Expand Down
13 changes: 13 additions & 0 deletions MODULE.bazel.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion api/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ filegroup(
srcs = [
"cli.json",
"labels.txt",
"schemas.txt",
"starlark.json",
],
visibility = ["//tools/api:__pkg__"],
Expand Down
2 changes: 0 additions & 2 deletions api/schemas.txt

This file was deleted.

7 changes: 2 additions & 5 deletions cli/adopt/src/scaffold.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ const DX_TOML_PATTERN: &str = "/dx\\.toml$";

fn dx_toml_schema_url() -> String {
format!(
"https://raw.githubusercontent.com/devhusdk/rules_dx/v{DX_VERSION}/cli/dx_config/schema/dx.schema.json"
"https://github.com/devhusdk/rules_dx/releases/download/v{DX_VERSION}/dx.schema.json"
)
}

Expand Down Expand Up @@ -1970,10 +1970,7 @@ mod tests {
.as_str()
.expect("url");
assert!(url.contains(&format!("/v{DX_VERSION}/")), "{url}");
assert!(
url.ends_with("cli/dx_config/schema/dx.schema.json"),
"{url}"
);
assert!(url.ends_with("/dx.schema.json"), "{url}");
let user = r#"{"evenBetterToml.schema.associations": {"mine": "x"}}"#;
let merged = merge_owned(FileKind::VscodeKeys, user, &settings).expect("merge");
let merged: serde_json::Value = serde_json::from_str(&merged).expect("json");
Expand Down
18 changes: 11 additions & 7 deletions cli/audit/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ package(default_visibility = VIS_CLI)
exports_files(
[
"Cargo.toml",
"schema/license.schema.json",
"schema/security.schema.json",
"src/lib.rs",
],
visibility = ["//visibility:public"],
Expand Down Expand Up @@ -73,8 +71,6 @@ rust_library(
compile_data = [
"base/licenses.toml",
"base/security.toml",
"schema/license.schema.json",
"schema/security.schema.json",
],
crate_name = "dx_audit",
crate_root = "src/lib.rs",
Expand Down Expand Up @@ -182,8 +178,6 @@ rust_test(
compile_data = [
"base/licenses.toml",
"base/security.toml",
"schema/license.schema.json",
"schema/security.schema.json",
"//:license.toml",
"//:security.toml",
"//docs:cli/commands/config.md",
Expand Down Expand Up @@ -231,7 +225,6 @@ rust_test(
],
)

# keep
rust_binary(
name = "config_schemas",
srcs = ["src/bin_config_schemas.rs"],
Expand All @@ -240,6 +233,17 @@ rust_binary(
deps = [":dx_audit"],
)

genrule(
name = "schemas",
outs = [
"schema/license.schema.json",
"schema/security.schema.json",
],
cmd = "$(location :config_schemas) $(RULEDIR)/schema",
tools = [":config_schemas"],
visibility = ["//visibility:public"],
)

real_source_target(
name = "corpus_starlark",
starlark_srcs = ["BUILD.bazel"],
Expand Down
220 changes: 0 additions & 220 deletions cli/audit/schema/license.schema.json

This file was deleted.

Loading
Loading