From 02ca7a6c656a1e5e5465ad78b31040d82ae1a7e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Thu, 7 Jan 2021 11:19:37 +0100 Subject: [PATCH] write trailing newline to gemset.nix editorconfig-check in nixpkgs wants newline at the end of a file --- lib/bundix/commandline.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/bundix/commandline.rb b/lib/bundix/commandline.rb index e0dce71..da93386 100644 --- a/lib/bundix/commandline.rb +++ b/lib/bundix/commandline.rb @@ -157,6 +157,7 @@ def save_gemset(gemset) tempfile = Tempfile.new('gemset.nix', encoding: 'UTF-8') begin tempfile.write(object2nix(gemset)) + tempfile.write("\n") tempfile.flush FileUtils.cp(tempfile.path, options[:gemset]) FileUtils.chmod(0644, options[:gemset])