Skip to content

Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows

Add RUSTDOCFLAGS to doctest command and remove env defaults

Maximilian Roosc00f6d3de2ac
diff --git a/.config/wt.toml b/.config/wt.toml
index 32bf864bc..957804cfc 100644
--- a/.config/wt.toml
+++ b/.config/wt.toml
@@ -42,5 +42,5 @@ pre-commit = "pre-commit run --all-files"
# a TOML table section, and everything after it would be inside that section
[pre-merge]
insta = "RUSTFLAGS='-D warnings' NEXTEST_STATUS_LEVEL=fail NEXTEST_SUCCESS_OUTPUT=never cargo insta test --dnd --check --features shell-integration-tests"
-doctest = "cargo test --doc"
+doctest = "RUSTDOCFLAGS='-Dwarnings' cargo test --doc"
doc = "RUSTDOCFLAGS='-Dwarnings' cargo doc --no-deps"
diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml
index 43ef0c7e9..5d01b373c 100644
--- a/.github/workflows/ci.yaml
+++ b/.github/workflows/ci.yaml
@@ -9,8 +9,6 @@ on:
env:
CARGO_TERM_COLOR: always
- RUSTFLAGS: "-C debuginfo=0"
- RUSTDOCFLAGS: "-Dwarnings"
jobs:
lint: