-
-
Notifications
You must be signed in to change notification settings - Fork 928
chore: use tombi #8534
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: use tombi #8534
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -29,14 +29,17 @@ jobs: | |
| uses: moonrepo/setup-rust@ede6de059f8046a5e236c94046823e2af11ca670 # v1.2.2 | ||
| with: | ||
| components: rustfmt | ||
| bins: taplo-cli | ||
| cache-base: main | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| - name: Run rustfmt | ||
| run: | | ||
| cargo fmt --all --verbose -- --check | ||
| taplo format --check | ||
| - uses: tombi-toml/setup-tombi@v1 | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| - name: Format TOML files | ||
| run: tombi format --check | ||
|
Comment on lines
+38
to
+42
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: find . -name "main.yml" -path "*/.github/workflows/*" | head -20Repository: biomejs/biome Length of output: 85 🏁 Script executed: cat .github/workflows/main.yml | head -100Repository: biomejs/biome Length of output: 3151 🏁 Script executed: grep -n "uses:" .github/workflows/main.ymlRepository: biomejs/biome Length of output: 1040 Pin the action to a specific commit hash for consistency and supply chain security. Third-party actions should be pinned to specific commit hash SHAs for maximum control and immutability. Other actions in this workflow use commit hash pinning (e.g., 🤖 Prompt for AI Agents |
||
|
|
||
| lint: | ||
| name: Lint Rust Files | ||
|
|
||
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,15 +1,15 @@ | ||
| [package] | ||
| name = "biome_cli" | ||
| version = "0.0.0" | ||
| authors.workspace = true | ||
| categories.workspace = true | ||
| description = "Biome's command line interface" | ||
| edition.workspace = true | ||
| description = "Biome's command line interface" | ||
| homepage.workspace = true | ||
| keywords.workspace = true | ||
| repository.workspace = true | ||
| license.workspace = true | ||
| name = "biome_cli" | ||
| keywords.workspace = true | ||
| categories.workspace = true | ||
| publish = false | ||
| repository.workspace = true | ||
| version = "0.0.0" | ||
|
|
||
| # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
|
|
||
|
|
@@ -26,7 +26,7 @@ biome_css_analyze = { workspace = true } | |
| biome_css_syntax = { workspace = true } | ||
| biome_deserialize = { workspace = true } | ||
| biome_deserialize_macros = { workspace = true } | ||
| biome_diagnostics = { workspace = true, features = ["std", "bpaf"] } | ||
| biome_diagnostics = { workspace = true, features = ["bpaf", "std"] } | ||
| biome_flags = { workspace = true } | ||
| biome_formatter = { workspace = true } | ||
| biome_fs = { workspace = true } | ||
|
|
@@ -63,23 +63,21 @@ serde = { workspace = true, features = ["derive"] } | |
| serde_json = { workspace = true } | ||
| smallvec = { workspace = true } | ||
| terminal_size = { workspace = true } | ||
| tokio = { workspace = true, features = ["io-std", "io-util", "net", "time", "rt", "sync", "rt-multi-thread", "macros"] } | ||
| tokio = { workspace = true, features = [ | ||
| "io-std", | ||
| "io-util", | ||
| "macros", | ||
| "net", | ||
| "rt", | ||
| "rt-multi-thread", | ||
| "sync", | ||
| "time" | ||
| ] } | ||
| tracing = { workspace = true } | ||
| tracing-appender = "0.2.3" | ||
| tracing-subscriber = { workspace = true, features = ["env-filter", "json"] } | ||
| tracing-tree = "0.4.1" | ||
|
|
||
|
|
||
| [target.'cfg(unix)'.dependencies] | ||
| libc = "0.2.177" | ||
| tokio = { workspace = true, features = ["process"] } | ||
|
|
||
| [target.'cfg(windows)'.dependencies] | ||
| mimalloc = { workspace = true } | ||
|
|
||
| [target.'cfg(all(target_family="unix", not(all(target_arch = "aarch64", target_env = "musl"))))'.dependencies] | ||
| tikv-jemallocator = { workspace = true } | ||
|
|
||
| [dev-dependencies] | ||
| biome_css_formatter = { workspace = true } | ||
| biome_js_formatter = { workspace = true } | ||
|
|
@@ -89,6 +87,16 @@ insta = { workspace = true } | |
| regex = { workspace = true } | ||
| tokio = { workspace = true, features = ["io-util"] } | ||
|
|
||
| [target.'cfg(all(target_family="unix", not(all(target_arch = "aarch64", target_env = "musl"))))'.dependencies] | ||
| tikv-jemallocator = { workspace = true } | ||
|
|
||
| [target.'cfg(unix)'.dependencies] | ||
| libc = "0.2.177" | ||
| tokio = { workspace = true, features = ["process"] } | ||
|
Comment on lines
+93
to
+95
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: cat -n Cargo.toml | grep -A 50 "\[workspace.dependencies\]"Repository: biomejs/biome Length of output: 4617 🏁 Script executed: rg -n 'libc' Cargo.tomlRepository: biomejs/biome Length of output: 101 🏁 Script executed: sed -n '100,135p' Cargo.toml | cat -nRepository: biomejs/biome Length of output: 2286 🏁 Script executed: sed -n '16,130p' Cargo.toml | grep -E '^\[|^libc'Repository: biomejs/biome Length of output: 122 🏁 Script executed: # Also check if libc appears elsewhere in crates/biome_cli/Cargo.toml with different versions
cat -n crates/biome_cli/Cargo.toml | grep -i libcRepository: biomejs/biome Length of output: 81 🏁 Script executed: # Check how libc is used in other crates
fd 'Cargo.toml' crates/ -x grep -l 'libc' {} \;Repository: biomejs/biome Length of output: 122 🏁 Script executed: # Check if other platform-specific dependencies use workspace = true
grep -n "target.*dependencies" crates/biome_cli/Cargo.toml -A 5Repository: biomejs/biome Length of output: 506 🏁 Script executed: # Check how libc is specified in biome_plugin_loader
grep -n 'libc' crates/biome_plugin_loader/Cargo.toml -B 2 -A 2Repository: biomejs/biome Length of output: 345 🏁 Script executed: # Verify the workspace guideline applies here - check if this is an internal-only dependency
grep -n 'libc' crates/*/Cargo.toml | head -20Repository: biomejs/biome Length of output: 314 Use workspace dependency for
🤖 Prompt for AI Agents |
||
|
|
||
| [target.'cfg(windows)'.dependencies] | ||
| mimalloc = { workspace = true } | ||
|
|
||
| [features] | ||
| docgen = ["bpaf/docgen"] | ||
| js_plugin = ["biome_service/js_plugin"] | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,22 +1,29 @@ | ||
| [package] | ||
| name = "biome_configuration" | ||
| version = "0.0.1" | ||
| authors.workspace = true | ||
| categories.workspace = true | ||
| description = "Biome Configuration" | ||
| edition.workspace = true | ||
| description = "Biome Configuration" | ||
| homepage.workspace = true | ||
| keywords.workspace = true | ||
| repository.workspace = true | ||
| license.workspace = true | ||
| name = "biome_configuration" | ||
| keywords.workspace = true | ||
| categories.workspace = true | ||
| publish = false | ||
| repository.workspace = true | ||
| version = "0.0.1" | ||
|
|
||
| # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
|
|
||
| [dependencies] | ||
| biome_analyze = { workspace = true, features = ["serde"] } | ||
| biome_console = { workspace = true } | ||
| [package.metadata.cargo-udeps.ignore] | ||
| # currently technically not used, but needed in order to compile because of the `schema` feature | ||
| normal = ["biome_html_syntax"] | ||
|
|
||
| [[bench]] | ||
| harness = false | ||
| name = "biome_json" | ||
|
|
||
| [dependencies] | ||
| biome_analyze = { workspace = true, features = ["serde"] } | ||
| biome_console = { workspace = true } | ||
| biome_deserialize = { workspace = true } | ||
| biome_deserialize_macros = { workspace = true } | ||
| biome_diagnostics = { workspace = true } | ||
|
|
@@ -40,38 +47,30 @@ rustc-hash = { workspace = true } | |
| schemars = { workspace = true, optional = true } | ||
| serde = { workspace = true, features = ["derive"] } | ||
|
|
||
| [features] | ||
| schema = [ | ||
| "dep:schemars", | ||
| "biome_formatter/schema", | ||
| "biome_json_syntax/schema", | ||
| "biome_html_formatter/schema", | ||
| "biome_html_syntax/schema", | ||
| "biome_analyze/schema", | ||
| "biome_json_formatter/schema", | ||
| "biome_js_formatter/schema", | ||
| "biome_rule_options/schema", | ||
| "biome_plugin_loader/schema", | ||
| ] | ||
|
|
||
| [dev-dependencies] | ||
| criterion = { package = "codspeed-criterion-compat", version = "=3.0.5" } | ||
| insta = { workspace = true } | ||
| tests_macros = { workspace = true } | ||
|
Comment on lines
50
to
53
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Inconsistent dev-dependency pattern for internal crate.
🔎 Suggested fix [dev-dependencies]
criterion = { package = "codspeed-criterion-compat", version = "=3.0.5" }
insta = { workspace = true }
-tests_macros = { workspace = true }
+tests_macros = { path = "../tests_macros" }Based on learnings: Use path dependencies for internal crates in dev-dependencies. 🤖 Prompt for AI Agents |
||
|
|
||
| [target.'cfg(all(target_family="unix", not(all(target_arch = "aarch64", target_env = "musl"))))'.dev-dependencies] | ||
| tikv-jemallocator = { workspace = true } | ||
|
|
||
| [target.'cfg(target_os = "windows")'.dev-dependencies] | ||
| mimalloc = { workspace = true } | ||
|
|
||
| [target.'cfg(all(target_family="unix", not(all(target_arch = "aarch64", target_env = "musl"))))'.dev-dependencies] | ||
| tikv-jemallocator = { workspace = true } | ||
| [features] | ||
| schema = [ | ||
| "biome_analyze/schema", | ||
| "biome_formatter/schema", | ||
| "biome_html_formatter/schema", | ||
| "biome_html_syntax/schema", | ||
| "biome_js_formatter/schema", | ||
| "biome_json_formatter/schema", | ||
| "biome_json_syntax/schema", | ||
| "biome_plugin_loader/schema", | ||
| "biome_rule_options/schema", | ||
| "dep:schemars", | ||
| ] | ||
|
|
||
| [lints] | ||
| workspace = true | ||
|
|
||
| [package.metadata.cargo-udeps.ignore] | ||
| # currently technically not used, but needed in order to compile because of the `schema` feature | ||
| normal = ["biome_html_syntax"] | ||
|
|
||
| [[bench]] | ||
| harness = false | ||
| name = "biome_json" | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
wasm-bindgen-cliignore is appropriate—consider documenting the version sync requirement.wasm-bindgen-cli's bindgen format is unstable enough that its version must exactly match the wasm-bindgen library dependency, making manual updates necessary. Since Biome's build process depends on WebAssembly bindings, this change correctly prevents Renovate from auto-updating a package that could break the build if misaligned.
If this fix is tangential to your PR's primary objective (Taplo → Tombi migration), consider whether it belongs in a separate PR for clearer review scope. Otherwise, the comment could reference why version sync matters for future maintainers.
🤖 Prompt for AI Agents