new: keep generated builds away from local build outputs and vendored autotools files
CI / build (push) Failing after 2m55s
CI / test (push) Skipped
CI / snap (push) Skipped

This commit is contained in:
2026-09-17 11:33:33 +02:00
parent bc3d07abaa
commit afedde1f2b
3 changed files with 31 additions and 4 deletions
+16 -3
View File
@@ -107,9 +107,19 @@ fn source_format(opts: &NewOptions) -> OutputFile {
/// `debian/source/local-options` with `single-debian-patch`, so later
/// upstream-tree edits stay representable as one `debian/patches/debian-changes-*`
/// patch instead of failing the build (quilt only).
/// patch instead of failing the build (quilt only). Common build-output
/// directories are excluded from the delta as well: compiling locally before
/// a source build must not turn `target/`, `node_modules/` or `.venv/`
/// binaries into unrepresentable changes (dpkg ignores `__pycache__` and
/// friends by default, but not those).
fn local_options() -> OutputFile {
OutputFile::new("debian/source/local-options", "single-debian-patch\n")
OutputFile::new(
"debian/source/local-options",
"single-debian-patch\n\
extend-diff-ignore = ^target/\n\
extend-diff-ignore = ^node_modules/\n\
extend-diff-ignore = ^\\.venv/\n",
)
}
/// `debian/changelog`: the single initial entry, distribution UNRELEASED by
@@ -558,7 +568,10 @@ mod tests {
assert_eq!(find("debian/source/format").contents, "3.0 (quilt)\n");
assert_eq!(
find("debian/source/local-options").contents,
"single-debian-patch\n"
"single-debian-patch\n\
extend-diff-ignore = ^target/\n\
extend-diff-ignore = ^node_modules/\n\
extend-diff-ignore = ^\\.venv/\n"
);
let native = NewOptions {