Skip to content

Commit 96d00e1

Browse files
author
Test User
committed
Merge remote-tracking branch 'gitea/task/835-sessions-import-since'
2 parents 3827da2 + 382ceab commit 96d00e1

1 file changed

Lines changed: 38 additions & 6 deletions

File tree

BUILD.md

Lines changed: 38 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ When `Cargo.toml` is detected:
5252
```bash
5353
cargo fmt --all -- --check
5454
cargo clippy --workspace --all-targets -- -D warnings
55-
cargo build --workspace --profile ci
56-
cargo test --workspace --no-fail-fast --profile ci
55+
cargo build --workspace --profile ci --profile ci
56+
cargo test --workspace --no-fail-fast --profile ci --profile ci
5757
```
5858

5959
## Command Transformation
@@ -194,7 +194,7 @@ cost:: low|medium|high
194194
## Auto-corrected (2026-05-29T22:58:17Z)
195195

196196
Failed: `cargo clippy --workspace --all-targets -- -D warnings`
197-
CORRECTION: `cargo build --workspace --tests`
197+
CORRECTION: `cargo build --workspace --profile ci --tests`
198198

199199
REASON: The `terraphim_orchestrator` crate has compilation errors (not clippy warnings) that prevent the build from completing. Clippy cannot run on code that won't compile. Run a plain build to reveal the actual errors before attempting linting.
200200

@@ -211,7 +211,7 @@ REASON: View the full clippy warning/error message instead of the truncated outp
211211

212212
After you see the full error, you'll likely need to either:
213213
- Fix the clippy warning in the code, then re-run with `-D warnings`
214-
- Or run `cargo build --workspace --profile ci && cargo test --workspace --no-fail-fast --profile ci` first to verify compilation and tests work, then address the specific clippy warning
214+
- Or run `cargo build --workspace --profile ci --profile ci && cargo test --workspace --no-fail-fast --profile ci --profile ci` first to verify compilation and tests work, then address the specific clippy warning
215215

216216
## Auto-corrected (2026-05-29T23:02:05Z)
217217

@@ -238,12 +238,44 @@ Alternatively, if you intended this as a conditional check that should fail unde
238238

239239
## Auto-corrected (2026-06-01T05:22:46Z)
240240

241-
Failed: `cargo build --workspace --profile ci --profile ci --profile ci --profile ci`
242-
CORRECTION: `cargo build --workspace --profile ci`
241+
Failed: `cargo build --workspace --profile ci --profile ci --profile ci --profile ci --profile ci`
242+
CORRECTION: `cargo build --workspace --profile ci --profile ci`
243243

244244
REASON: The `--profile` flag was specified 4 times; Cargo only accepts it once. Remove the duplicate flags, keeping a single `--profile ci`.
245245

246246
## Auto-corrected (2026-06-01T16:48:30Z)
247247

248248
Failed: `git definitely-not-a-real-subcommand`
249249
Not logged in · Please run /login
250+
251+
## Auto-corrected (2026-06-02T15:42:19Z)
252+
253+
Failed: `cargo fmt --all -- --check`
254+
CORRECTION: `cargo fmt --all --check`
255+
256+
REASON: The `--check` flag belongs to `cargo fmt` (not rustfmt), so it should come before the `--` separator. The syntax `cargo fmt --all -- --check` incorrectly passes `--check` as a rustfmt argument after the separator.
257+
258+
## Auto-corrected (2026-06-02T15:42:33Z)
259+
260+
Failed: `cargo clippy --workspace --all-targets -- -D warnings`
261+
CORRECTION: `cargo clippy --workspace --exclude terraphim_automata --all-targets -- -D warnings`
262+
263+
REASON: The recent commit (E5 cut, #1910) excluded or removed `terraphim_automata` from the workspace, but the root Cargo.toml workspace configuration still references it—use `--exclude` to skip it during linting.
264+
265+
## Auto-corrected (2026-06-02T15:42:41Z)
266+
267+
Failed: `cargo build --workspace --profile ci --profile ci`
268+
CORRECTION: `cargo build --workspace --profile ci`
269+
270+
REASON: The `--profile ci` argument is specified twice, which cargo doesn't allow. Looking at the memory, there's a known issue where a KG hook re-appends `--profile ci` to BUILD.md on every write — this appears to have affected the CI command generation as well.
271+
272+
## Auto-corrected (2026-06-02T15:42:56Z)
273+
274+
Failed: `cargo test --workspace --no-fail-fast --profile ci --profile ci`
275+
CORRECTION: `cargo test --workspace --no-fail-fast --profile ci`
276+
277+
REASON: The `--profile ci` argument is specified twice in the original command, which is invalid. Cargo only allows one `--profile` argument.
278+
279+
---
280+
281+
**Note:** This duplication is a known issue in the project—the KG hook in `.claude/hooks/` automatically re-appends `--profile ci` to BUILD.md after writes. Check the source command in your CI config (likely in `BUILD.md` or a workflow file) and ensure it only has `--profile ci` once. The memory documents this as a recurring root cause of merge-queue freezes (see `feedback_kg_hook_corrupts_build_md.md`).

0 commit comments

Comments
 (0)