nigig-org/.gitignore
nigig-ci c0143a3af8 build: track the workspace root Cargo.lock (Phase 0.1)
CI already runs with --locked: nigig-build.yml asserts
`cargo metadata --locked` and `git diff --exit-code -- Cargo.lock`,
and doc-engine.yml builds every target with --locked. None of that
can hold while the root lockfile is gitignored -- `--locked` fails
outright with no lockfile to check against, so in practice every
build re-resolved and a transitive dependency could change under CI
without any commit recording it.

The nigig-build workflow comment already claimed this was done
("Blocked until Cargo.lock was committed in Phase 0.2"); it was not.
This commits it.

The ignore rule becomes `**/Cargo.lock` + `!/Cargo.lock` so the root
lock is tracked while incidental nested locks stay ignored. The three
payment-crate locks keep their existing negations and stay tracked.

Generated with the pinned toolchain from rust-toolchain.toml (1.97.1)
against makepad rev a79f0dce; 566 packages. Verified `cargo metadata
--locked` exits 0.
2026-07-31 20:06:15 +00:00

58 lines
1.5 KiB
Text

target
# Phase 0.1: the workspace root lockfile is TRACKED. CI runs with --locked
# (see .forgejo/workflows/*.yml), which cannot work against an ignored
# lockfile: `cargo metadata --locked` fails outright and every build
# re-resolves, so a dependency can change under CI without any commit.
# Nested/vendored lockfiles stay ignored via the pattern below.
**/Cargo.lock
!/Cargo.lock
# Review item 1.1: the payment crates are validated standalone against a
# checked-in lockfile, so their locks must be tracked. Application crates
# keep using the ignore rule above.
!crates/nigig-pay-domain/Cargo.lock
!crates/nigig-pay-storage/Cargo.lock
.env
.cargo
# Ignore large sample files
**/*.laz
makepad-native-glue
local
.makepad
cargo-makepad
crates/kenya-shortbread-1.0.mbtiles
crates/copy_code
crates/makepad_table.tar.gz
crates/rustc*
old
*.rs0
*.rs1
*.rs2
*.rs3
*.rs4
*.zip
*.txt
*rlib
crates/apps/nigig_makepad2_fixes.zip
crates/apps/code
crates/apps/theming0
crates/apps/theming1
crates/lookpad
generated
kenya-shortbread-1.0.mbtiles
ui/CONSTRUCTION COSTS HANDBOOK 20202021.pdf
ui/Building Construction Costs Handbook 2019-2020.pdf
*.pdf
*.mp4
*.jpeg
*.jpg
*.png
crates/my-scraper
.DS_Store
# PDF test data is source, not scratch output. Without these exceptions the
# blanket *.txt and *.pdf rules silently exclude the fixtures and golden
# expectations, and the PDF tests cannot run on a fresh clone.
!crates/apps/pdf/pdf-graphics/tests/golden/*.txt
!crates/apps/pdf/pdf-document/tests/*.pdf
!crates/apps/pdf/tests/corpus/**/*.pdf