fix(build): avoid perpetually invalidating build script inputs
Repeated production builds recompiled build-info, GTK and their dependents because build scripts watched missing optional files and generated outputs. Watch packed-refs only when present and the prebuilt GTK bundle only when consumed. Loose refs remain watched so packing them refreshes Git inputs. Invoke glib-compile-resources directly instead of using a helper that also watches generated XML and UI files. The existing resources directory watch covers their source inputs. Remove the unused helper dependency and document the build input rules. Test Plan: - Run cargo build --profile production three times; repeats compile nothing. - Run cargo clippy, cargo clippy --benches and cargo clippy --tests. - Run cargo +nightly fmt and repeat all three Clippy checks. Documentation: docs/rewrite/ARCHITECTURE.md
This commit is contained in:
1 parent
7cec74e18b
commit
92f4f521ab
5 files changed
+39
-19
No files matched your search
Generated
-7
@@ -1379,7 +1379,6 @@ dependencies = [
|
||||
"ghostty-inspector",
|
||||
"ghostty-os",
|
||||
"ghostty-vt",
|
||||
"glib-build-tools",
|
||||
"glow",
|
||||
"gtk4",
|
||||
"gtk4-layer-shell",
|
||||
@@ -1856,12 +1855,6 @@ dependencies = [
|
||||
"smallvec",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "glib-build-tools"
|
||||
version = "0.22.8"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "f9871f38b67853c358b8190f77b9f878eb27d933a950f1045b244c4559a9f5f0"
|
||||
|
||||
[[package]]
|
||||
name = "glib-macros"
|
||||
version = "0.22.9"
|
||||
|
||||
Reference in new issue
Block a user