From: Valentin Gagarin <valentin@gagarin.work>
To: devel@spectrum-os.org
Cc: Valentin Gagarin <valentin@gagarin.work>
Subject: [PATCH] release/checks/whitespace: skip binary files
Date: Thu, 21 May 2026 00:22:37 +0200 [thread overview]
Message-ID: <20260520222237.257773-1-valentin@gagarin.work> (raw)
Trailing whitespace is meaningful only for text.
Signed-off-by: Valentin Gagarin <valentin@gagarin.work>
---
release/checks/whitespace.nix | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/release/checks/whitespace.nix b/release/checks/whitespace.nix
index 56710b6..3929c8f 100644
--- a/release/checks/whitespace.nix
+++ b/release/checks/whitespace.nix
@@ -9,6 +9,6 @@ runCommand "spectrum-whitespace" {
fileset = srcWithNix;
};
} ''
- grep --color=always --exclude='*.patch' -r "[[:space:]]$" $src || touch $out
+ grep --color=always --binary-files=without-match --exclude='*.patch' -r "[[:space:]]$" $src || touch $out
''
) (_: {})
--
2.51.2
reply other threads:[~2026-05-20 22:23 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260520222237.257773-1-valentin@gagarin.work \
--to=valentin@gagarin.work \
--cc=devel@spectrum-os.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://spectrum-os.org/git/crosvm
https://spectrum-os.org/git/doc
https://spectrum-os.org/git/mktuntap
https://spectrum-os.org/git/nixpkgs
https://spectrum-os.org/git/spectrum
https://spectrum-os.org/git/ucspi-vsock
https://spectrum-os.org/git/www
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).