From e109784f84d44cc73abeaa6c96c5a5d5bf9e3e06 Mon Sep 17 00:00:00 2001 From: Maximilian Bosch Date: Tue, 24 Apr 2018 07:10:23 +0200 Subject: [PATCH] .version: remove final newline When reading the `nixpkgs` version from `.version` you always have a `\n` at the end because of the final newline. This issue exists since b7d15ed and had to be fixed several times according to the history of `.version`. Furthermore @Infinisil recommended I explicitly configured `.editorconfig` to avoid newlines in `.version`. --- .editorconfig | 4 ++++ .version | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.editorconfig b/.editorconfig index 7b40ff1ff56..f5df33889e6 100644 --- a/.editorconfig +++ b/.editorconfig @@ -26,3 +26,7 @@ indent_size = 4 # Match diffs, avoid to trim trailing whitespace [*.{diff,patch}] trim_trailing_whitespace = false + +# https://github.com/NixOS/nixpkgs/pull/39336#discussion_r183387754 +[.version] +insert_final_newline = false diff --git a/.version b/.version index 770bde1f44b..c1b80a50279 100644 --- a/.version +++ b/.version @@ -1 +1 @@ -18.09 +18.09 \ No newline at end of file