Skip to content

Commit 03f88d9

Browse files
committed
fix(ci): replace taplo with azldev for TOML validation
taplo lint was validating TOML files against a static JSON schema that drifts out of date whenever azldev adds new config fields, causing spurious CI failures on valid configs. Replace the Rust/taplo toolchain with azldev, which is the authoritative parser for these files. "azldev config dump" validates syntax, schema, includes, and full config resolution in strict mode (fails on unknown fields). Errors are printed to stderr for CI diagnostics. Delete taplo.toml since taplo is no longer used in CI.
1 parent 8088a19 commit 03f88d9

2 files changed

Lines changed: 10 additions & 20 deletions

File tree

.github/workflows/lint.yaml

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,25 +15,23 @@ permissions:
1515

1616
jobs:
1717
lint:
18-
name: "Lint TOML files"
18+
name: "Validate TOML config"
1919
runs-on: ubuntu-latest
2020
steps:
2121
- name: Checkout
2222
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
2323
with:
2424
persist-credentials: false
25-
26-
- name: Set up rust toolchain
27-
uses: dtolnay/rust-toolchain@e97e2d8cc328f1b50210efc529dca0028893a2d9 # v1
28-
with:
29-
toolchain: stable
3025

31-
- name: Enable cargo cache
32-
uses: Swatinem/rust-cache@779680da715d629ac1d338a641029a2f4372abb5 # v2.8.2
26+
- name: Set up Go
27+
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
28+
with:
29+
go-version: stable
30+
cache: false
3331

34-
- name: "Install linter (taplo)"
35-
run: cargo install --locked taplo-cli
32+
- name: Install azldev
33+
run: go install github.com/microsoft/azure-linux-dev-tools/cmd/azldev@0590d38b32c0a414e0969e85aca8542c3d339079
3634

37-
- name: "Run linter"
38-
run: taplo lint --colors=always
35+
- name: "Validate config (strict)"
36+
run: azldev config dump > /dev/null
3937

taplo.toml

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)