diff options
author | Maximilian Bosch <maximilian@mbosch.me> | 2018-04-24 07:10:23 +0200 |
---|---|---|
committer | Maximilian Bosch <maximilian@mbosch.me> | 2018-04-24 07:10:23 +0200 |
commit | e109784f84d44cc73abeaa6c96c5a5d5bf9e3e06 (patch) | |
tree | 3e2004d815535e49c3f0ecc023f52d2f3b088c93 | |
parent | a3a2ae65d7ee0ace9e316125b85422fd02937a3a (diff) | |
download | nixlib-e109784f84d44cc73abeaa6c96c5a5d5bf9e3e06.tar nixlib-e109784f84d44cc73abeaa6c96c5a5d5bf9e3e06.tar.gz nixlib-e109784f84d44cc73abeaa6c96c5a5d5bf9e3e06.tar.bz2 nixlib-e109784f84d44cc73abeaa6c96c5a5d5bf9e3e06.tar.lz nixlib-e109784f84d44cc73abeaa6c96c5a5d5bf9e3e06.tar.xz nixlib-e109784f84d44cc73abeaa6c96c5a5d5bf9e3e06.tar.zst nixlib-e109784f84d44cc73abeaa6c96c5a5d5bf9e3e06.zip |
.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`.
-rw-r--r-- | .editorconfig | 4 | ||||
-rw-r--r-- | .version | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/.editorconfig b/.editorconfig index 7b40ff1ff568..f5df33889e6b 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 770bde1f44b3..c1b80a502792 100644 --- a/.version +++ b/.version @@ -1 +1 @@ -18.09 +18.09 \ No newline at end of file |